Home > @poq/transform > TypeConverter > toPlain
Method transforms instance of class/type into plain representation.
Signature:
toPlain(transformer: typeof Transformer, item: InstanceType<Ctor>, options?: TransformOptions): PlainObj;
Parameter | Type | Description |
---|---|---|
transformer | typeof Transformer | Reference to transformer static class |
item | InstanceType<Ctor> | Instance of class/type to be transformed into plain representation. |
options | TransformOptions | (Optional) |
Returns:
Return plain representation of class/type instance.