toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['vehicle_id'] = this.vehicleId;
data['route_id'] = this.routeId;
if (this.stopEtas != null) {
data['stop_etas'] = this.stopEtas.map((v) => v.toJson()).toList();
}
data['updated'] = this.updated;
return data;
}