SmRoutes.fromJson constructor

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

Implementation

factory SmRoutes.fromJson(Map<String, dynamic> json) {
  return SmRoutes(
    distance: json['distance'] as num,
    duration: json['duration'] as num,
    weight: json['weight'] as num,
    geometry: json['geometry'] as String
  );
}