The value to serialize.
The payload that describes Value.
The integer tag of the value type.
Tags must be unique among adapters that participate in serialization.
Returns true
if the adapter can pack the value.
The value to get the type tag of.
Serialization options.
Optional
hydrateConverts value into a serializable payload.
The returned payload is dehydrated before serialization, so it can contain complex data structures and cyclic references. If the value itself is returned from this method, then the serialization would proceed as if adapter wasn't applied.
If undefined
is returned then value isn't serialized.
The value for which a payload must be produced.
Serialization options.
The payload that is dehydrated and serialized.
Returns the shallow value to which circular references from the payload may point.
The payload that isn't hydrated yet (references aren't resolved yet).
Serialization options.
Adapter that serializes/deserializes Value as a Payload.