toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    if (city != null) 'city': city,
    if (countryCode != null) 'country_code': countryCode,
    if (region != null) 'region': region,
  };
}