toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.owner != null) {
json[r'owner'] = this.owner;
} else {
json[r'owner'] = null;
}
json[r'slices'] = this.slices;
if (this.cabinClass != null) {
json[r'cabinClass'] = this.cabinClass;
} else {
json[r'cabinClass'] = null;
}
if (this.terms != null) {
json[r'terms'] = this.terms;
} else {
json[r'terms'] = null;
}
json[r'includedBaggage'] = this.includedBaggage;
json[r'selectedServices'] = this.selectedServices;
json[r'priceLines'] = this.priceLines;
if (this.totalDurationMinutes != null) {
json[r'totalDurationMinutes'] = this.totalDurationMinutes;
} else {
json[r'totalDurationMinutes'] = null;
}
if (this.totalStops != null) {
json[r'totalStops'] = this.totalStops;
} else {
json[r'totalStops'] = null;
}
return json;
}