toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.iataCode != null) {
json[r'iataCode'] = this.iataCode;
} else {
json[r'iataCode'] = null;
}
if (this.icaoCode != null) {
json[r'icaoCode'] = this.icaoCode;
} else {
json[r'icaoCode'] = null;
}
if (this.name != null) {
json[r'name'] = this.name;
} else {
json[r'name'] = null;
}
if (this.city != null) {
json[r'city'] = this.city;
} else {
json[r'city'] = null;
}
if (this.cityIataCode != null) {
json[r'cityIataCode'] = this.cityIataCode;
} else {
json[r'cityIataCode'] = null;
}
if (this.countryCode != null) {
json[r'countryCode'] = this.countryCode;
} else {
json[r'countryCode'] = null;
}
if (this.terminal != null) {
json[r'terminal'] = this.terminal;
} else {
json[r'terminal'] = null;
}
if (this.timezone != null) {
json[r'timezone'] = this.timezone;
} else {
json[r'timezone'] = null;
}
return json;
}