Road.fromJson constructor

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

Implementation

Road.fromJson(Map<String, dynamic> json) {
  direction = json['direction'];
  distance = json['distance'];
  id = json['id'];
  latLngPoint = json['latLngPoint'] != null ? LatLng.fromJson(json['latLngPoint']) : null;
  name = json['name'];
}