toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() => {
  if (addressNumber != null) 'address_number': addressNumber,
  if (street != null) 'street': street,
  if (postcode != null) 'postcode': postcode,
  if (place != null) 'place': place,
  if (region != null) 'region': region,
  if (country != null) 'country': country,
  if (locality != null) 'locality': locality,
  if (neighborhood != null) 'neighborhood': neighborhood,
};