hydrate()function
Deeply hydrate a class instance based on a set of Hydrations
hydrate(value: unknown, hydrations: Hydrations): unknown
Deeply hydrate a class instance based on a set of Hydrations
hydrate(value: unknown, hydrations: Hydrations): unknown
Deeply dehydrate a class instance based on a set of Hydrations
dehydrate(value: unknown, hydrations: Hydrations): unknown
A set of hydrations describes a set of string keys and the class constructor to be dehydrated and rehydrated.
ImmutableDictionary<Class<unknown>>
A dehydrated object with a $type key.
{
readonly $type: string;
readonly $value: unknown;
}