Home > @poq/transform > Transformer > toPlain
Method transforms typed object into plain javascript object.
Signature:
static toPlain(typedElement: {
constructor: Function;
}, options?: TransformOptions): PlainObj;
Parameter | Type | Description |
---|---|---|
typedElement | { constructor: Function; } | Defines instance of type to transform into plain. |
options | TransformOptions | (Optional) |
Returns:
Plain object representation of instance.