toJson method
Implementation
Map<String, dynamic> toJson() {
final data = <String, dynamic>{};
data['distance'] = this.distance;
if (this.polyline != null) {
data['polyline'] = this.polyline?.map((v) => v.toJson()).toList();
}
data['status'] = this.status;
return data;
}