toJson method
override
Object to Map serializer
Implementation
@override
Map<String, dynamic> toJson() {
return {
'@type': 'countryInfo',
if (extra != null) '@extra': extra,
'country_code': country_code,
'name': name,
'english_name': english_name,
'is_hidden': is_hidden,
'calling_codes': calling_codes
};
}