Map<String, dynamic> toJson() => { "origin": origin?.toJson(), "destination": destination?.toJson(), };