Page Contents
Home > @loopback/repository > Type > serialize
Type.serialize() method
Serialize a value into json
Signature:
serialize(value: T | null | undefined, options?: Options): any;
Parameters
| Parameter | Type | Description |
|---|---|---|
| value | T | null | undefined | The value of this type |
| options | Options | Options for serialization |
Returns:
any