Poq.SDK.Node

Home > @poq/transform > MapConverter > toPlain

MapConverter.toPlain() method

Method transforms instance of class/type into plain representation.

Signature:

toPlain(transformer: typeof Transformer, item: Map<string, unknown>, options?: TransformOptions): PlainObj;

Parameters

Parameter Type Description
transformer typeof Transformer Reference to transformer static class
item Map<string, unknown> Instance of class/type to be transformed into plain representation.
options TransformOptions (Optional)

Returns:

PlainObj

Return plain representation of class/type instance.