BloodOxygenBean.fromJson constructor

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

Implementation

factory BloodOxygenBean.fromJson(Map<String, dynamic> json) => BloodOxygenBean(
      type: json["type"] ?? -1,
      continueState: json["continueState"] ?? false,
      timingMeasure: json["timingMeasure"] ?? -1,
      bloodOxygen: json["bloodOxygen"] ?? -1,
      historyList: List<HistoryBloodOxygenBean>.from((json["historyList"] ?? []).map((x) => HistoryBloodOxygenBean.fromJson(x))),
      continueBo: BloodOxygenInfo.fromJson(json["continueBO"] ?? {}),
    );