UNPKG

@loopback/docs

Version:

Documentation files rendered at [https://loopback.io](https://loopback.io)

36 lines (23 loc) 945 B
--- lang: en title: 'API docs: repository.type.serialize' keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI sidebar: lb4_sidebar editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/repository permalink: /doc/en/lb4/apidocs.repository.type.serialize.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/repository](./repository.md) &gt; [Type](./repository.type.md) &gt; [serialize](./repository.type.serialize.md) ## Type.serialize() method Serialize a value into json <b>Signature:</b> ```typescript serialize(value: T | null | undefined, options?: Options): any; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | value | T \| null \| undefined | The value of this type | | options | [Options](./repository.options.md) | Options for serialization | <b>Returns:</b> any