Skip to main content
Version: 0.17

Class: JSONAPIBaseSerializer<From, To, SerializationOptions, DeserializationOptions>

Type parameters​

Name
From
To
SerializationOptions
DeserializationOptions

Hierarchy​

Constructors​

constructor​

• new JSONAPIBaseSerializer<From, To, SerializationOptions, DeserializationOptions>(settings)

Type parameters​

Name
From
To
SerializationOptions
DeserializationOptions

Parameters​

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

Overrides​

BaseSerializer< From, To, SerializationOptions, DeserializationOptions \>.constructor

Defined in​

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

Properties​

serializerFor​

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

Overrides​

BaseSerializer.serializerFor

Defined in​

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

Accessors​

keyMap​

• get keyMap(): undefined | RecordKeyMap

Returns​

undefined | RecordKeyMap

Defined in​

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


schema​

• get schema(): RecordSchema

Returns​

RecordSchema

Defined in​

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

Methods​

deserialize​

â–¸ Abstract deserialize(arg, options?): From

Parameters​

NameType
argTo
options?DeserializationOptions

Returns​

From

Inherited from​

BaseSerializer.deserialize

Defined in​

packages/@orbit/serializers/dist/modules/base-serializer.d.ts:15


serialize​

â–¸ Abstract serialize(arg, options?): To

Parameters​

NameType
argFrom
options?SerializationOptions

Returns​

To

Inherited from​

BaseSerializer.serialize

Defined in​

packages/@orbit/serializers/dist/modules/base-serializer.d.ts:14