fromJson static method

AddressComponent fromJson(
  1. dynamic json
)

Implementation

static AddressComponent fromJson(dynamic json) {
  return AddressComponent(name: json['long_name'], shortName: json['short_name']);
}