toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.maxStops != null) {
    json[r'maxStops'] = this.maxStops;
  } else {
    json[r'maxStops'] = null;
  }
  if (this.preferredAirlines != null) {
    json[r'preferredAirlines'] = this.preferredAirlines;
  } else {
    json[r'preferredAirlines'] = null;
  }
  if (this.excludedAirlines != null) {
    json[r'excludedAirlines'] = this.excludedAirlines;
  } else {
    json[r'excludedAirlines'] = null;
  }
  if (this.refundableOnly != null) {
    json[r'refundableOnly'] = this.refundableOnly;
  } else {
    json[r'refundableOnly'] = null;
  }
  if (this.maxPrice != null) {
    json[r'maxPrice'] = this.maxPrice;
  } else {
    json[r'maxPrice'] = null;
  }
  return json;
}