AddressComponents.fromJson constructor

AddressComponents.fromJson(
  1. Map<String, dynamic> json
)

Implementation

AddressComponents.fromJson(Map<String, dynamic> json) {
  if (json["long_name"] is String) this.longName = json["long_name"];
  if (json["short_name"] is String) this.shortName = json["short_name"];
  if (json["types"] is List)
    this.types = json["types"] == null ? null : List<String>.from(json["types"]);
}