toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "via_waypoints": List<dynamic>.from(viaWaypoints.map((x) => x)),
      "admins": List<dynamic>.from(admins.map((x) => x.toJson())),
      "weight": weight,
      "duration": duration,
      "steps": List<dynamic>.from(steps.map((x) => x.toJson())),
      "distance": distance,
      "summary": summary,
    };