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:
-
keyString
Returns:
modelNameFromRelationshipType
(
-
relationshipType
Return model name for relationship.
Parameters:
-
relationshipTypeStringType of relationship (
relationship.type).
serializePolymorphicType
(
-
snapshot -
json -
relationship
You can use this method to customize how polymorphic objects are serialized. More info.
Parameters:
-
snapshotDS.Snapshot -
jsonObject -
relationshipObject
Flexberry Documentation