DS.RESTSerializer#serializePolymorphicType()

serializePolymorphicType (snapshot, json, relationship)

Inherited from DS.JSONSerializer but overwritten in addon/serializers/rest.js:742

You can use this method to customize how polymorphic objects are serialized. By default the REST Serializer creates the key by appending Type to the attribute and value from the model's camelcased model name.

Parameters:

snapshot DS.Snapshot
json Object
relationship Object
doc_EmberJs
2016-11-30 16:50:38
Comments
Leave a Comment

Please login to continue.