GoogleTypePostalAddress.fromJson constructor

GoogleTypePostalAddress.fromJson(
  1. Map _json
)

Implementation

GoogleTypePostalAddress.fromJson(core.Map _json)
    : this(
        addressLines: _json.containsKey('addressLines')
            ? (_json['addressLines'] as core.List)
                .map<core.String>((value) => value as core.String)
                .toList()
            : null,
        administrativeArea: _json.containsKey('administrativeArea')
            ? _json['administrativeArea'] as core.String
            : null,
        languageCode: _json.containsKey('languageCode')
            ? _json['languageCode'] as core.String
            : null,
        locality: _json.containsKey('locality')
            ? _json['locality'] as core.String
            : null,
        organization: _json.containsKey('organization')
            ? _json['organization'] as core.String
            : null,
        postalCode: _json.containsKey('postalCode')
            ? _json['postalCode'] as core.String
            : null,
        recipients: _json.containsKey('recipients')
            ? (_json['recipients'] as core.List)
                .map<core.String>((value) => value as core.String)
                .toList()
            : null,
        regionCode: _json.containsKey('regionCode')
            ? _json['regionCode'] as core.String
            : null,
        revision: _json.containsKey('revision')
            ? _json['revision'] as core.int
            : null,
        sortingCode: _json.containsKey('sortingCode')
            ? _json['sortingCode'] as core.String
            : null,
        sublocality: _json.containsKey('sublocality')
            ? _json['sublocality'] as core.String
            : null,
      );