toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "type": type,
      "startTime": startTime,
      "endTime": endTime,
      "validTime": validTime,
      "steps": steps,
      "distance": distance,
      "calories": calories,
      "hrList": List<dynamic>.from(hrList!.map((x) => x)),
    };