GoogleMapsAddressvalidationV1Address.fromJson constructor

GoogleMapsAddressvalidationV1Address.fromJson(
  1. Map json_
)

Implementation

GoogleMapsAddressvalidationV1Address.fromJson(core.Map json_)
    : this(
        addressComponents: json_.containsKey('addressComponents')
            ? (json_['addressComponents'] as core.List)
                .map((value) =>
                    GoogleMapsAddressvalidationV1AddressComponent.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        formattedAddress: json_.containsKey('formattedAddress')
            ? json_['formattedAddress'] as core.String
            : null,
        missingComponentTypes: json_.containsKey('missingComponentTypes')
            ? (json_['missingComponentTypes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        postalAddress: json_.containsKey('postalAddress')
            ? GoogleTypePostalAddress.fromJson(
                json_['postalAddress'] as core.Map<core.String, core.dynamic>)
            : null,
        unconfirmedComponentTypes:
            json_.containsKey('unconfirmedComponentTypes')
                ? (json_['unconfirmedComponentTypes'] as core.List)
                    .map((value) => value as core.String)
                    .toList()
                : null,
        unresolvedTokens: json_.containsKey('unresolvedTokens')
            ? (json_['unresolvedTokens'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );