toJson method
Implementation
Map<String, dynamic> toJson() {
final data = <String, dynamic>{};
if (this.centerPoint != null) {
data['centerPoint'] = this.centerPoint?.toJson();
}
data['direction'] = this.direction;
data['distance'] = this.distance;
data['firstRoadId'] = this.firstRoadId;
data['firstRoadName'] = this.firstRoadName;
data['id'] = this.id;
data['roadWidth'] = this.roadWidth;
data['secondRoadId'] = this.secondRoadId;
data['secondRoadName'] = this.secondRoadName;
return data;
}