toJson method
Implementation
Map<String, dynamic> toJson() => {
"historyTrainList": List<HistoryTrainList>.from(historyTrainList!.map((x) => x)),
"trainingList": List<TrainingInfo>.from(trainingList!.map((x) => x)),
"type": type,
};