Waypoint.fromJson constructor

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

Implementation

factory Waypoint.fromJson(Map<String, dynamic> json) => Waypoint(
      distance: json["distance"]?.toDouble(),
      name: json["name"],
      location: List<double>.from(json["location"].map((x) => x?.toDouble())),
    );