Skip to main content

Interface: Deserializer<Record, Data, Deserialized>

Deserializer converting adapter data to a deserialized set of instances.

Extends

Type parameters

Record

Content of the adapter's original response, containing records or relations data.

Data

Object containing deserialized instances and other relevant deserialized data (e.g. the document for a JSON:API response).

Deserialized extends DeserializedData

Methods

deserialize()

deserialize(data, context): Awaitable<Deserialized>

Deserialize adapter data to a deserialized set of instances.

Parameters

data: Data

context

Returns

Awaitable<Deserialized>

Inherited from

DeserializerI . deserialize

Source

core/src/types.ts:163


deserializeRecord()

deserializeRecord(record, context, instancesMap?): Awaitable <ModelInstance>

Parameters

record: DeserializerRecord<Record, Data, Deserialized>

context

instancesMap?: DeserializerInstancesMap

Returns

Awaitable <ModelInstance>

Source

serialization/src/types.ts:106