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