SmWaypoints.fromJson constructor

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

Implementation

factory SmWaypoints.fromJson(Map<String, dynamic> json) {
  return SmWaypoints(
    distance: json['distance'] as num,
    location: LatLng(json['location'][1] as double,json['location'][0] as double),
    name: json['name'] as String
  );
}