Interface: Deserializer<Record, Data, Deserialized>
Deserializer converting adapter data to a deserialized set of instances.
Extends
DeserializerI
<Data
,Deserialized
>
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
Source
deserializeRecord()
deserializeRecord(
record
,context
,instancesMap
?):Awaitable
<ModelInstance
>
Parameters
• record: DeserializerRecord
<Record
, Data
, Deserialized
>
• context
• instancesMap?: DeserializerInstancesMap