import AudreySerializer from './audrey';

export default AudreySerializer.extend({

  keyTranslationTable: {
    id: '_id',
    login: 'name',
    accountType: 'type',
    profileImage: 'logo'
  },

  keyForAttribute (attr) {
    let keyName = attr;
    if (attr in this.keyTranslationTable) {
      keyName = this.keyTranslationTable[attr];
    }

    return this._super(keyName);
  }
});
