BuildingAddress.fromJson constructor

BuildingAddress.fromJson(
  1. Map json_
)

Implementation

BuildingAddress.fromJson(core.Map json_)
    : this(
        addressLines: json_.containsKey('addressLines')
            ? (json_['addressLines'] as core.List)
                .map((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,
        postalCode: json_.containsKey('postalCode')
            ? json_['postalCode'] as core.String
            : null,
        regionCode: json_.containsKey('regionCode')
            ? json_['regionCode'] as core.String
            : null,
        sublocality: json_.containsKey('sublocality')
            ? json_['sublocality'] as core.String
            : null,
      );