toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'passengerIndex'] = this.passengerIndex;
  if (this.type != null) {
    json[r'type'] = this.type;
  } else {
    json[r'type'] = null;
  }
  if (this.age != null) {
    json[r'age'] = this.age;
  } else {
    json[r'age'] = null;
  }
  if (this.fareType != null) {
    json[r'fareType'] = this.fareType;
  } else {
    json[r'fareType'] = null;
  }
    json[r'includedBaggage'] = this.includedBaggage;
    json[r'availableServices'] = this.availableServices;
  return json;
}