toMap method

Map toMap()

Creates a map from the address properties.

Implementation

Map toMap() => {
      "coordinates": this.coordinates.toMap(),
      "addressLine": this.addressLine,
      "countryName": this.countryName,
      "countryCode": this.countryCode,
      "featureName": this.featureName,
      "postalCode": this.postalCode,
      "locality": this.locality,
      "subLocality": this.subLocality,
      "adminArea": this.adminArea,
      "subAdminArea": this.subAdminArea,
      "thoroughfare": this.thoroughfare,
      "subThoroughfare": this.subThoroughfare,
    };