toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "entry": List<dynamic>.from(entry.map((x) => x)),
      "bearings": List<dynamic>.from(bearings.map((x) => x)),
      "duration": duration,
      "is_urban": isUrban,
      "admin_index": adminIndex,
      "out": out,
      "weight": weight,
      "geometry_index": geometryIndex,
      "location": List<dynamic>.from(location.map((x) => x)),
      "in": intersectionIn,
      "turn_duration": turnDuration,
      "turn_weight": turnWeight,
      "classes":
          classes == null ? [] : List<dynamic>.from(classes!.map((x) => x)),
    };