DeliveryArea.fromJson constructor

DeliveryArea.fromJson(
  1. Map json_
)

Implementation

DeliveryArea.fromJson(core.Map json_)
    : this(
        countryCode: json_.containsKey('countryCode')
            ? json_['countryCode'] as core.String
            : null,
        postalCodeRange: json_.containsKey('postalCodeRange')
            ? DeliveryAreaPostalCodeRange.fromJson(json_['postalCodeRange']
                as core.Map<core.String, core.dynamic>)
            : null,
        regionCode: json_.containsKey('regionCode')
            ? json_['regionCode'] as core.String
            : null,
      );