Measurement.fromJson constructor

Measurement.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Measurement.fromJson(Map<String, dynamic> json) => Measurement(
      contents: json["contents"] == null ? null : json["contents"],
      accumulatedDeltaRangeMeters: json["accumulatedDeltaRangeMeters"] == null
          ? null
          : json["accumulatedDeltaRangeMeters"].toDouble(),
      accumulatedDeltaRangeState: json["accumulatedDeltaRangeState"] == null
          ? null
          : json["accumulatedDeltaRangeState"],
      accumulatedDeltaRangeUncertaintyMeters:
          json["accumulatedDeltaRangeUncertaintyMeters"] == null
              ? null
              : json["accumulatedDeltaRangeUncertaintyMeters"].toDouble(),
      automaticGainControlLevelDb: json["automaticGainControlLevelDb"] == null
          ? null
          : json["automaticGainControlLevelDb"].toDouble(),
      carrierFrequencyHz: json["carrierFrequencyHz"] == null
          ? null
          : json["carrierFrequencyHz"].toDouble(),
      cn0DbHz: json["cn0DbHz"] == null ? null : json["cn0DbHz"].toDouble(),
      constellationType: json["constellationType"] == null
          ? null
          : json["constellationType"],
      multipathIndicator: json["multipathIndicator"] == null
          ? null
          : json["multipathIndicator"],
      pseudorangeRateMetersPerSecond:
          json["pseudorangeRateMetersPerSecond"] == null
              ? null
              : json["pseudorangeRateMetersPerSecond"].toDouble(),
      pseudorangeRateUncertaintyMetersPerSecond:
          json["pseudorangeRateUncertaintyMetersPerSecond"] == null
              ? null
              : json["pseudorangeRateUncertaintyMetersPerSecond"].toDouble(),
      receivedSvTimeNanos: json["receivedSvTimeNanos"] == null
          ? null
          : json["receivedSvTimeNanos"],
      receivedSvTimeUncertaintyNanos:
          json["receivedSvTimeUncertaintyNanos"] == null
              ? null
              : json["receivedSvTimeUncertaintyNanos"],
      snrInDb: json["snrInDb"] == null ? null : json["snrInDb"].toDouble(),
      state: json["state"] == null ? null : json["state"],
      svid: json["svid"] == null ? null : json["svid"],
      timeOffsetNanos: json["timeOffsetNanos"] == null
          ? null
          : json["timeOffsetNanos"].toDouble(),
      string: json["string"] == null ? null : json["string"],
    );