RouteSession.fromJson constructor
RouteSession.fromJson(
- Map json
Implementation
factory RouteSession.fromJson(Map json) {
return RouteSession(
busTypeId: json['busTypeId'],
current: json['cur'],
startDate: DateTime.parse(json['ini']),
endDate: DateTime.parse(json['end']),
name: json['nam']);
}