Poq.SDK.Node

Home > @poq/transform > AbstractConverter > toType

AbstractConverter.toType() method

Method transforms plain representation into instance of class/type.

Signature:

abstract toType(transformer: typeof Transformer, item: P, options?: TransformOptions): S;

Parameters

Parameter Type Description
transformer typeof Transformer Reference to transformer static class
item P Plain representation of value to transform into typed one.
options TransformOptions (Optional)

Returns:

S

Returns instance of class/type.