Segment.fromJson constructor
Implementation
factory Segment.fromJson(Map<String, dynamic> json) => Segment(
distance: json["distance"]?.toDouble(),
duration: json["duration"]?.toDouble(),
steps: List<Step>.from(json["steps"].map((x) => Step.fromJson(x))),
);