Show:

Base serializer class.

Methods

extractPolymorphicRelationship

(
  • relationshipType
  • relationshipHash
)
Object

You can use this method to customize how a polymorphic relationship should be extracted. More info.

Parameters:

Returns:

modelNameFromPayloadKey

(
  • key
)
String

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:

Returns:

modelNameFromRelationshipType

(
  • relationshipType
)

Return model name for relationship.

Parameters:

  • relationshipType String

    Type of relationship (relationship.type).

serializePolymorphicType

(
  • snapshot
  • json
  • relationship
)

You can use this method to customize how polymorphic objects are serialized. More info.

Parameters: