toJson method
Implementation
Map<String, dynamic> toJson() {
final data = <String, dynamic>{};
data['direction'] = this.direction;
data['distance'] = this.distance;
data['id'] = this.id;
if (this.latLngPoint != null) {
data['latLngPoint'] = this.latLngPoint?.toJson();
}
data['name'] = this.name;
return data;
}