Status.fromJson constructor

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

Implementation

factory Status.fromJson(Map<String, dynamic> json) => Status(
      azimuthDegrees: json["azimuthDegrees"] == null
          ? null
          : json["azimuthDegrees"].toDouble(),
      carrierFrequencyHz: json["carrierFrequencyHz"] == null
          ? null
          : json["carrierFrequencyHz"].toDouble(),
      cn0DbHz: json["cn0DbHz"] == null ? null : json["cn0DbHz"].toDouble(),
      constellationType: json["constellationType"] == null
          ? null
          : json["constellationType"],
      elevationDegrees: json["elevationDegrees"] == null
          ? null
          : json["elevationDegrees"].toDouble(),
      svid: json["svid"] == null ? null : json["svid"],
      hasAlmanacData:
          json["hasAlmanacData"] == null ? null : json["hasAlmanacData"],
      hasCarrierFrequencyHz: json["hasCarrierFrequencyHz"] == null
          ? null
          : json["hasCarrierFrequencyHz"],
      hasEphemerisData:
          json["hasEphemerisData"] == null ? null : json["hasEphemerisData"],
      usedInFix: json["usedInFix"] == null ? null : json["usedInFix"],
    );