toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.sliceIndex != null) {
json[r'sliceIndex'] = this.sliceIndex;
} else {
json[r'sliceIndex'] = null;
}
if (this.segmentIndex != null) {
json[r'segmentIndex'] = this.segmentIndex;
} else {
json[r'segmentIndex'] = null;
}
if (this.cabinClass != null) {
json[r'cabinClass'] = this.cabinClass;
} else {
json[r'cabinClass'] = null;
}
json[r'baggage'] = this.baggage;
return json;
}