serialize (options) Object
Defined in addon/-private/system/model/model.js:382
Create a JSON representation of the record, using the serialization strategy of the store's adapter. serialize takes an optional hash as a parameter, currently supported options are:
includeId: true if the record's ID should be included in the JSON representation.
Parameters:
options Object
Returns:
Object
an object whose values are primitive JSON values only