Address.fromMap constructor
Implementation
factory Address.fromMap(Map<String, dynamic> map) {
return Address(
addressComponents:
parseAddressComponentArray(map['address_components']) ?? const [],
formattedAddress: map['formatted_address'] as String,
geometry: Geometry.fromMap(map['geometry']),
placeId: map['place_id'] as String,
types: map['types']?.cast<String>() ?? const <String>[],
);
}