serializePolymorphicType (snapshot, json, relationship)
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
Please login to continue.