Address.fromMap constructor

Address.fromMap(
  1. Map map
)

Creates an address from a map containing its properties.

Implementation

Address.fromMap(Map map)
    : coordinates = Coordinates.fromMap(map["coordinates"]),
      addressLine = map["addressLine"],
      countryName = map["countryName"],
      countryCode = map["countryCode"],
      featureName = map["featureName"],
      postalCode = map["postalCode"],
      locality = map["locality"],
      subLocality = map["subLocality"],
      adminArea = map["adminArea"],
      subAdminArea = map["subAdminArea"],
      thoroughfare = map["thoroughfare"],
      subThoroughfare = map["subThoroughfare"];