text: import RestfulModel from './restful-model';
  import Attributes from './attributes';
  
  export class Label extends RestfulModel {
    saveRequestBody() {
      const json = {};
      json['display_name'] = this.displayName;
      json['name'] = this.name;
      return json;
    }
  
    save(params = {}, callback = null) {
      return this._save(params, callback);
    }
  }
  Label.collectionName = 'labels';
  Label.attributes = {
    ...RestfulModel.attributes,
    name: Attributes.String({
      modelKey: 'name',
      jsonKey: 'name',
    }),
    displayName: Attributes.String({
      modelKey: 'displayName',
      jsonKey: 'display_name',
    }),
  };
  
  export class Folder extends Label {}
  Folder.collectionName = 'folders';
  