toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.expiresAt != null) {
json[r'expiresAt'] = this.expiresAt!.toUtc().toIso8601String();
} else {
json[r'expiresAt'] = null;
}
if (this.quotedAt != null) {
json[r'quotedAt'] = this.quotedAt!.toUtc().toIso8601String();
} else {
json[r'quotedAt'] = null;
}
if (this.hasSeatMaps != null) {
json[r'hasSeatMaps'] = this.hasSeatMaps;
} else {
json[r'hasSeatMaps'] = null;
}
if (this.terms != null) {
json[r'terms'] = this.terms;
} else {
json[r'terms'] = null;
}
json[r'includedBaggage'] = this.includedBaggage;
if (this.priceBreakdown != null) {
json[r'priceBreakdown'] = this.priceBreakdown;
} else {
json[r'priceBreakdown'] = null;
}
json[r'availableServices'] = this.availableServices;
json[r'fareOptions'] = this.fareOptions;
return json;
}