Home > @poq/transform > Transformer > deserialize
Method deserializes json string into type instance.
Signature:
static deserialize<T>(json: string, ctor: Ctor<T>, options?: TransformOptions): T;
Parameter | Type | Description |
---|---|---|
json | string | Defines string representation of javascript object. |
ctor | Ctor<T> | Defines target type of deserialization. |
options | TransformOptions | (Optional) |
Returns:
T
Instance of type.