HeartRateBean.fromJson constructor
HeartRateBean.fromJson(
- Map<String, dynamic> json
)
Implementation
factory HeartRateBean.fromJson(Map<String, dynamic> json) => HeartRateBean(
type: json["type"],
measuring: json["measuring"] ?? -1,
onceMeasureComplete: json["onceMeasureComplete"] ?? -1,
historyHrList: List<HistoryHeartRateBean>.from((json["historyHrList"] ?? []).map((x) => HistoryHeartRateBean.fromJson(x))),
measureComplete: MeasureCompleteBean.fromJson(json["measureComplete"] ?? {}),
hour24MeasureResult: HeartRateInfo.fromJson(json["hour24MeasureResult"] ?? {}),
trainingList: List<TrainingHeartRateBean>.from((json["trainingList"] ?? []).map((x) => TrainingHeartRateBean.fromJson(x))),
);