toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.countryCode != null) {
json[r'countryCode'] = this.countryCode;
} else {
json[r'countryCode'] = null;
}
if (this.numericCode != null) {
json[r'numericCode'] = this.numericCode;
} else {
json[r'numericCode'] = null;
}
if (this.name != null) {
json[r'name'] = this.name;
} else {
json[r'name'] = null;
}
if (this.dialCode != null) {
json[r'dialCode'] = this.dialCode;
} else {
json[r'dialCode'] = null;
}
if (this.flagUrl != null) {
json[r'flagUrl'] = this.flagUrl;
} else {
json[r'flagUrl'] = null;
}
return json;
}