toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.id != null) {
json[r'id'] = this.id;
} else {
json[r'id'] = null;
}
if (this.type != null) {
json[r'type'] = this.type;
} else {
json[r'type'] = null;
}
if (this.passengerIndex != null) {
json[r'passengerIndex'] = this.passengerIndex;
} else {
json[r'passengerIndex'] = null;
}
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.quantity != null) {
json[r'quantity'] = this.quantity;
} else {
json[r'quantity'] = null;
}
return json;
}