RouteSession.fromJson constructor

RouteSession.fromJson(
  1. 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']);
}