(message: Timestamp)
| 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)) |
nothing calls this directly
no outgoing calls
no test coverage detected