Leg.fromJson constructor
Implementation
factory Leg.fromJson(Map<String, dynamic> json) {
return Leg(
steps: json['steps'],
summary: json['summary'],
weight: json['weight'].toDouble(),
duration: json['duration'].toDouble(),
distance: json['distance'].toDouble(),
);
}