toJson method
Implementation
Map<String, dynamic> toJson() => {
"routes": List<dynamic>.from(routes.map((x) => x.toJson())),
"waypoints": List<dynamic>.from(waypoints.map((x) => x.toJson())),
"code": code,
"uuid": uuid,
};