Base Class
Defined in:
Module: ember-flexberry-data
addon/serializers/base.js:5
Base serializer class.
Item Index
Methods
extractPolymorphicRelationship
(
Object
-
relationshipType
-
relationshipHash
You can use this method to customize how a polymorphic relationship should be extracted. More info.
Returns:
modelNameFromPayloadKey
(
String
-
key
This method is used to convert each JSON root key in the payload into a modelName that it can use to look up the appropriate model for that part of the payload. More info.
Parameters:
-
key
String
Returns:
modelNameFromRelationshipType
(
-
relationshipType
Return model name for relationship.
Parameters:
-
relationshipType
StringType of relationship (
relationship.type
).
serializePolymorphicType
(
-
snapshot
-
json
-
relationship
You can use this method to customize how polymorphic objects are serialized. More info.
Parameters:
-
snapshot
DS.Snapshot -
json
Object -
relationship
Object