Waypoint.fromJson constructor
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())),
);