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

Function toJSON

src/types/generated/google/protobuf/timestamp.ts:128–137  ·  view source on GitHub ↗
(message: Timestamp)

Source from the content-addressed store, hash-verified

126 },
127
128 toJSON(message: Timestamp): unknown {
129 const obj: any = {}
130 if (message.seconds !== undefined) {
131 obj.seconds = Math.round(message.seconds)
132 }
133 if (message.nanos !== undefined) {
134 obj.nanos = Math.round(message.nanos)
135 }
136 return obj
137 },
138
139 create<I extends Exact<DeepPartial<Timestamp>, I>>(base?: I): Timestamp {
140 return Timestamp.fromPartial(base ?? ({} as any))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected