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

Method copyPropertyAsJson

packages/repository/src/model.ts:347–352  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

345 }
346
347 const copyPropertyAsJson = (key: string) => {
348 const val = asJSON((this as AnyObject)[key]);
349 if (val !== undefined) {
350 json[key] = val;
351 }
352 };
353
354 const json: AnyObject = {};
355 const hiddenProperties: string[] = def.settings.hiddenProperties || [];

Callers

nothing calls this directly

Calls 1

asJSONFunction · 0.85

Tested by

no test coverage detected