On this page

Source Code: lib/serialization/Serializer.js#L19

Represents Serializer.

new Serializer(): Serializer<DeserializedValue, SerializedValue, Context>
Returns:Serializer<DeserializedValue, SerializedValue, Context>
Source Code: lib/serialization/Serializer.js#L29
Type:Context
Source Code: lib/serialization/Serializer.js#L27
Source Code: lib/serialization/Serializer.js#L26
serializer.deserialize(value, context): Promise<DeserializedValue>
Source Code: lib/serialization/Serializer.js#L71
Attributes
value:SerializedValue | Promise<SerializedValue>
context:Context & ExtendedContext
Returns:Promise<DeserializedValue>

Restores this instance from the provided deserializer context.

serializer.serialize(obj, context): Promise<SerializedValue>
Source Code: lib/serialization/Serializer.js#L39
Attributes
obj:DeserializedValue | Promise<DeserializedValue>
context:Context & ExtendedContext
Returns:Promise<SerializedValue>

Serializes this instance into the provided serializer context.