Poq.SDK.Node

Home > @poq/transform > Transformer > deserialize

Transformer.deserialize() method

Method deserializes json string into type instance.

Signature:

static deserialize<T>(json: string, ctor: Ctor<T>, options?: TransformOptions): T;

Parameters

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.