Poq.SDK.Node

Home > @poq/transform > Transformer > toPlain

Transformer.toPlain() method

Method transforms array of typed objects into plain javascript objects.

Signature:

static toPlain(typedElements: Array<{
        constructor: Function;
    }>, options?: TransformOptions): PlainObj[];

Parameters

Parameter Type Description
typedElements Array<{ constructor: Function; }> Array of typed instances to transform into plain objects.
options TransformOptions (Optional)

Returns:

PlainObj[]

Plain objects representation of instances.