toJson method
Implementation
Map<String, dynamic> toJson() => {
"intersections":
List<dynamic>.from(intersections!.map((x) => x.toJson())),
"maneuver": maneuver!.toJson(),
"name": name,
"weight_typical": weightTypical,
"duration_typical": durationTypical,
"duration": duration,
"distance": distance,
"driving_side": drivingSideValues.reverse[drivingSide],
"weight": weight,
"mode": modeValues.reverse[mode],
"geometry": geometry!.toJson(),
"destinations": destinations,
};