Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/loopbackio/loopback-next
/ serialize
Method
serialize
packages/repository/src/types/any.ts:32–37 ·
view source on GitHub ↗
(value: any)
Source
from the content-addressed store, hash-verified
30
}
31
32
serialize(value: any) {
33
if
(value && typeof value.toJSON ===
'function'
) {
34
return
value.toJSON();
35
}
36
return
value;
37
}
38
}
Callers
nothing calls this directly
Calls
1
toJSON
Method · 0.45
Tested by
no test coverage detected