toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "contents": contents == null ? null : contents,
      "biasNanos": biasNanos == null ? null : biasNanos,
      "biasUncertaintyNanos":
          biasUncertaintyNanos == null ? null : biasUncertaintyNanos,
      "driftNanosPerSecond":
          driftNanosPerSecond == null ? null : driftNanosPerSecond,
      "driftUncertaintyNanosPerSecond": driftUncertaintyNanosPerSecond == null
          ? null
          : driftUncertaintyNanosPerSecond,
      "fullBiasNanos": fullBiasNanos == null ? null : fullBiasNanos,
      "hardwareClockDiscontinuityCount":
          hardwareClockDiscontinuityCount == null
              ? null
              : hardwareClockDiscontinuityCount,
      "leapSecond": leapSecond == null ? null : leapSecond,
      "timeNanos": timeNanos == null ? null : timeNanos,
      "timeUncertaintyNanos":
          timeUncertaintyNanos == null ? null : timeUncertaintyNanos,
    };