Summary.fromJson constructor

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

Implementation

factory Summary.fromJson(Map<String, dynamic> json) => Summary(
    distance: json["distance"]?.toDouble(),
    duration: json["duration"]?.toDouble(),
);