toJson method
Implementation
Map<String, dynamic> toJson() => {
"intersections":
List<dynamic>.from(intersections.map((x) => x.toJson())),
"maneuver": maneuver.toJson(),
"name": name,
"duration": duration,
"distance": distance,
"driving_side": drivingSide,
"weight": weight,
"mode": mode,
"geometry": geometry,
};