toJson method
Implementation
Map<String, dynamic> toJson() => {
"type": type,
"startTime": startTime,
"endTime": endTime,
"validTime": validTime,
"steps": steps,
"distance": distance,
"calories": calories,
};