toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.fareBasisCode != null) {
    json[r'fareBasisCode'] = this.fareBasisCode;
  } else {
    json[r'fareBasisCode'] = null;
  }
  if (this.brandName != null) {
    json[r'brandName'] = this.brandName;
  } else {
    json[r'brandName'] = null;
  }
  if (this.fareFamily != null) {
    json[r'fareFamily'] = this.fareFamily;
  } else {
    json[r'fareFamily'] = null;
  }
  if (this.validatingCarrier != null) {
    json[r'validatingCarrier'] = this.validatingCarrier;
  } else {
    json[r'validatingCarrier'] = null;
  }
  return json;
}