MCPcopy Create free account
hub / github.com/codeaashu/claude-code / fromJSON

Function fromJSON

src/types/generated/google/protobuf/timestamp.ts:121–126  ·  view source on GitHub ↗
(object: any)

Source from the content-addressed store, hash-verified

119
120export const Timestamp: MessageFns<Timestamp> = {
121 fromJSON(object: any): Timestamp {
122 return {
123 seconds: isSet(object.seconds) ? globalThis.Number(object.seconds) : 0,
124 nanos: isSet(object.nanos) ? globalThis.Number(object.nanos) : 0,
125 }
126 },
127
128 toJSON(message: Timestamp): unknown {
129 const obj: any = {}

Callers

nothing calls this directly

Calls 1

isSetFunction · 0.70

Tested by

no test coverage detected