toJson method

Map<String, dynamic> toJson()

Implementation

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