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,
};