code: function(snapshot, options) {
          var data = this._super(snapshot, options);
          var type = (options ? options.type : null) || snapshot.modelName;
          data['attributes'] = {};
          for (var key in data) {
            if (key === 'links' || key === 'attributes' || key === 'id' || key === 'type' || key === 'relationships') {
              if (key === 'links') {
                if (!data.relationships) {
                  data.relationships = {};
                }
                for (var k in data[key]) {
                  data.relationships[k] = data[key][k];
                }
                delete data.links;
              }
              continue;
            }
            data['attributes'][key] = data[key];
            delete data[key];
          }
          if (!data.hasOwnProperty('type') && type) {
            data.type = Ember.String.pluralize(this.keyForRelationship(type));
          }
          return data;
        }
docs: SERIALIZATION