PostalCodeGroup.fromJson constructor

PostalCodeGroup.fromJson(
  1. Map json_
)

Implementation

PostalCodeGroup.fromJson(core.Map json_)
    : this(
        country: json_.containsKey('country')
            ? json_['country'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        postalCodeRanges: json_.containsKey('postalCodeRanges')
            ? (json_['postalCodeRanges'] as core.List)
                .map((value) => PostalCodeRange.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );