GnssMeasurementModel.fromJson constructor

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

Implementation

factory GnssMeasurementModel.fromJson(Map<String, dynamic> json) =>
    GnssMeasurementModel(
      contents: json["contents"] == null ? null : json["contents"],
      string: json["string"] == null ? null : json["string"],
      measurements: json["measurements"] == null
          ? null
          : List<Measurement>.from(json["measurements"].map(
              (x) => Measurement.fromJson(Map<String, dynamic>.from(x)))),
      clock: json["clock"] == null
          ? null
          : Clock.fromJson(Map<String, dynamic>.from(json["clock"])),
    );