MCPcopy
hub / github.com/dyrector-io/dyrectorio / fromJSON

Function fromJSON

web/crux/src/grpc/protobuf/proto/agent.ts:395–402  ·  view source on GitHub ↗
(object: any)

Source from the content-addressed store, hash-verified

393
394export const AgentInfo = {
395 fromJSON(object: any): AgentInfo {
396 return {
397 id: isSet(object.id) ? String(object.id) : '',
398 version: isSet(object.version) ? String(object.version) : '',
399 publicKey: isSet(object.publicKey) ? String(object.publicKey) : '',
400 containerName: isSet(object.containerName) ? String(object.containerName) : undefined,
401 }
402 },
403
404 toJSON(message: AgentInfo): unknown {
405 const obj: any = {}

Callers

nothing calls this directly

Calls 10

volumeTypeFromJSONFunction · 0.90
driverTypeFromJSONFunction · 0.90
containerStateFromJSONFunction · 0.90
restartPolicyFromJSONFunction · 0.90
networkModeFromJSONFunction · 0.90
exposeStrategyFromJSONFunction · 0.90
closeReasonFromJSONFunction · 0.85
isSetFunction · 0.70
isObjectFunction · 0.70

Tested by

no test coverage detected