js/libs/ember-data.js
function(record, options) {
    return get(record, 'store').serializerFor(record.constructor.typeKey).serialize(record, options);
  }
function(record, options) {
    return get(record, 'store').serializerFor(record.constructor.typeKey).serialize(record, options);
  }
Proxies to the serializer's `serialize` method.

Example

```javascript
App.ApplicationAdapter = DS.Adapter.extend({
createRecord: function(store, type, record) {
var data = this.serialize(record, { includeId: true });
var url = type;

...
}
});
```

@method serialize
@param {DS.Model} record
@param {Object}   options
@return {Object} serialized record