MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / serialize

Method serialize

packages/repository/src/types/union.ts:48–54  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

46 }
47
48 serialize(value: any) {
49 for (const type of this.itemTypes) {
50 if (type.isInstance(value)) {
51 return type.serialize(value);
52 }
53 }
54 }
55}

Callers

nothing calls this directly

Calls 2

isInstanceMethod · 0.65
serializeMethod · 0.65

Tested by

no test coverage detected