• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1"use strict";
2/* eslint-disable */
3Object.defineProperty(exports, "__esModule", { value: true });
4exports.Timestamp = void 0;
5function createBaseTimestamp() {
6    return { seconds: "0", nanos: 0 };
7}
8exports.Timestamp = {
9    fromJSON(object) {
10        return {
11            seconds: isSet(object.seconds) ? String(object.seconds) : "0",
12            nanos: isSet(object.nanos) ? Number(object.nanos) : 0,
13        };
14    },
15    toJSON(message) {
16        const obj = {};
17        message.seconds !== undefined && (obj.seconds = message.seconds);
18        message.nanos !== undefined && (obj.nanos = Math.round(message.nanos));
19        return obj;
20    },
21};
22function isSet(value) {
23    return value !== null && value !== undefined;
24}
25