ConvertRegionPricesResponse.fromJson constructor

ConvertRegionPricesResponse.fromJson(
  1. Map json_
)

Implementation

ConvertRegionPricesResponse.fromJson(core.Map json_)
    : this(
        convertedOtherRegionsPrice:
            json_.containsKey('convertedOtherRegionsPrice')
                ? ConvertedOtherRegionsPrice.fromJson(
                    json_['convertedOtherRegionsPrice']
                        as core.Map<core.String, core.dynamic>)
                : null,
        convertedRegionPrices: json_.containsKey('convertedRegionPrices')
            ? (json_['convertedRegionPrices']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  ConvertedRegionPrice.fromJson(
                      value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
      );