resource-model.js 323 B

12345678910111213141516
  1. export class Scope {
  2. constructor(name, displayName) {
  3. this.name = name;
  4. this.displayName = displayName;
  5. }
  6. toString() {
  7. if (this.hasOwnProperty('displayName') && this.displayName) {
  8. return this.displayName;
  9. } else {
  10. return this.name;
  11. }
  12. }
  13. }
  14. //# sourceMappingURL=resource-model.js.map