toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'passengerType'] = this.passengerType;
json[r'count'] = this.count;
json[r'pricePerPassenger'] = this.pricePerPassenger;
if (this.priceBreakdown != null) {
json[r'priceBreakdown'] = this.priceBreakdown;
} else {
json[r'priceBreakdown'] = null;
}
if (this.fareBasisCode != null) {
json[r'fareBasisCode'] = this.fareBasisCode;
} else {
json[r'fareBasisCode'] = null;
}
if (this.bookingClass != null) {
json[r'bookingClass'] = this.bookingClass;
} else {
json[r'bookingClass'] = null;
}
return json;
}