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