The tag returned by getTag for value.
The value for which payload must be produced.
Serialization options.
The payload that is dehydrated and serialized.
Returns the unique tag of the value type, or undefined
if the adapter doesn't recognize the type of the given
value.
The value to get the type tag of.
Serialization options.
Returns the shallow value to which circular references from the payload may point. Otherwise, returns undefined
if the adapter doesn't recognize the given tag.
The tag of the value type.
The payload that isn't hydrated yet.
Serialization options.
Optional
hydrateHydrates the value that was previously returned from the getValue method.
The tag of the value type.
The value returned from the getValue method.
The hydrated payload.
Serialization options.
Converts value into a serializable payload.
The returned payload is dehydrated before serialization, so it can contain complex data structures and cyclic references. The payload is dehydrated during serialization. If the value itself is returned from this method, then the serialization would proceed as if no adapters were applied.