Skip to main content
Version: 0.17

Class: JSONAPIDocumentSerializer

Hierarchy​

Constructors​

constructor​

• new JSONAPIDocumentSerializer(settings)

Parameters​

NameType
settingsObject
settings.deserializationOptions?JSONAPIDocumentDeserializationOptions
settings.keyMap?RecordKeyMap
settings.schemaRecordSchema
settings.serializationOptions?unknown
settings.serializerForSerializerForFn<Serializer<unknown, unknown, unknown, unknown>>

Inherited from​

JSONAPIBaseSerializer.constructor

Defined in​

packages/@orbit/jsonapi/src/serializers/jsonapi-base-serializer.ts:31

Properties​

serializerFor​

• serializerFor: SerializerForFn<Serializer<unknown, unknown, unknown, unknown>>

Inherited from​

JSONAPIBaseSerializer.serializerFor

Defined in​

packages/@orbit/jsonapi/src/serializers/jsonapi-base-serializer.ts:27

Accessors​

keyMap​

• get keyMap(): undefined | RecordKeyMap

Returns​

undefined | RecordKeyMap

Inherited from​

JSONAPIBaseSerializer.keyMap

Defined in​

packages/@orbit/jsonapi/src/serializers/jsonapi-base-serializer.ts:58


schema​

• get schema(): RecordSchema

Returns​

RecordSchema

Inherited from​

JSONAPIBaseSerializer.schema

Defined in​

packages/@orbit/jsonapi/src/serializers/jsonapi-base-serializer.ts:54

Methods​

deserialize​

â–¸ deserialize(resDocument, customOptions?): RecordDocument

Parameters​

NameType
resDocumentResourceDocument
customOptions?JSONAPIDocumentDeserializationOptions

Returns​

RecordDocument

Overrides​

JSONAPIBaseSerializer.deserialize

Defined in​

packages/@orbit/jsonapi/src/serializers/jsonapi-document-serializer.ts:30


serialize​

â–¸ serialize(document): ResourceDocument

Parameters​

NameType
documentRecordDocument

Returns​

ResourceDocument

Overrides​

JSONAPIBaseSerializer.serialize

Defined in​

packages/@orbit/jsonapi/src/serializers/jsonapi-document-serializer.ts:17