Maneuver.fromJson constructor

Maneuver.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Maneuver.fromJson(Map<String, dynamic> json) => Maneuver(
      type: json["type"],
      instruction: json["instruction"],
      bearingAfter: json["bearing_after"],
      bearingBefore: json["bearing_before"],
      location: List<double>.from(json["location"].map((x) => x?.toDouble())),
      modifier: json["modifier"] != null
          ? modifierValues.map[json["modifier"]]
          : null,
      exit: json["exit"],
    );