toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.id != null) {
json[r'id'] = this.id;
} else {
json[r'id'] = null;
}
if (this.name != null) {
json[r'name'] = this.name;
} else {
json[r'name'] = null;
}
if (this.isoCode != null) {
json[r'iso_code'] = this.isoCode;
} else {
json[r'iso_code'] = null;
}
if (this.countryIcon != null) {
json[r'country_icon'] = this.countryIcon;
} else {
json[r'country_icon'] = null;
}
return json;
}