MCPcopy Create free account
hub / github.com/loopbackio/loopback-next / serialize

Method serialize

packages/repository/src/types/model.ts:20–23  ·  view source on GitHub ↗
(value: T | null | undefined)

Source from the content-addressed store, hash-verified

18 }
19
20 serialize(value: T | null | undefined) {
21 if (value == null) return value;
22 return value.toJSON();
23 }
24}

Callers

nothing calls this directly

Calls 1

toJSONMethod · 0.45

Tested by

no test coverage detected