HeartRateInfo.fromJson constructor

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

Implementation

factory HeartRateInfo.fromJson(Map<String, dynamic> json) => HeartRateInfo(
      startTime: json["startTime"] ?? 0,
      heartRateList: List<int>.from((json["heartRateList"] ?? []).map((x) => x)),
      timeInterval: json["timeInterval"] ?? 0,
      heartRateType: json["heartRateType"] ?? "",
      isAllDay: json["isAllDay"] ?? 0,
    );