toJson method
Implementation
Map<String, dynamic> toJson() => {
"startTime": startTime,
"heartRateList": List<dynamic>.from(heartRateList.map((x) => x)),
"timeInterval": timeInterval,
"heartRateType": heartRateType,
"isAllDay": isAllDay,
};