import Serializer from 'web-client/models/core/serializers/serializer';


export default Serializer.extend({

  /** Publicly exposed properties and methods */

  deserialize: function (data) {
    data.id = data.name;
    data.logo = data.logo || "//static-cdn.jtvnw.net/jtv_user_pictures/xarth/404_user_150x150.png";

    // TODO: temporary hack because this property name collides with name of a relation
    // on the Channel model.
    delete data.followers;

    return data;
  }
});
