Crossroad.fromJson constructor

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

Implementation

Crossroad.fromJson(Map<String, dynamic> json) {
  centerPoint = json['centerPoint'] != null ? LatLng.fromJson(json['centerPoint']) : null;
  direction = json['direction'];
  distance = json['distance'];
  firstRoadId = json['firstRoadId'];
  firstRoadName = json['firstRoadName'];
  id = json['id'];
  roadWidth = json['roadWidth'];
  secondRoadId = json['secondRoadId'];
  secondRoadName = json['secondRoadName'];
}