HistoryTrainList.fromJson constructor

HistoryTrainList.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory HistoryTrainList.fromJson(Map<String, dynamic> json) => HistoryTrainList(
      startTime: json["startTime"] ?? -1,
      type: json["type"] ?? -1,
      id: json["id"] ?? -1,
    );