toMap method
Implementation
Map<String, dynamic> toMap() {
return {
'ip': ip,
'hostname': hostName,
'continent_code': continentCode,
'continent_name': continentName,
'country_code2': countryCode2,
'country_code3': countryCode3,
'country_name': countryName,
'country_capital': countryCapital,
'state_prov': stateProv,
'district': district,
'city': city,
'zipcode': zipCode,
'latitude': latitude,
'longitude': longitude,
'is_eu': isEu,
'calling_code': callingCode,
'country_ltd': countryLtd,
'languages': languages,
'country_flag': countryFlag,
'geoname_id': geonameId,
'isp': isp,
'connection_type': connectionType,
'organization': organization,
'asn': asn,
'currency': currency.toMap(),
'time_zone': timeZone.toMap(),
};
}