OtherRegionsSubscriptionOfferPhaseConfig.fromJson constructor

OtherRegionsSubscriptionOfferPhaseConfig.fromJson(
  1. Map json_
)

Implementation

OtherRegionsSubscriptionOfferPhaseConfig.fromJson(core.Map json_)
  : this(
      absoluteDiscounts:
          json_.containsKey('absoluteDiscounts')
              ? OtherRegionsSubscriptionOfferPhasePrices.fromJson(
                json_['absoluteDiscounts']
                    as core.Map<core.String, core.dynamic>,
              )
              : null,
      free:
          json_.containsKey('free')
              ? OtherRegionsSubscriptionOfferPhaseFreePriceOverride.fromJson(
                json_['free'] as core.Map<core.String, core.dynamic>,
              )
              : null,
      otherRegionsPrices:
          json_.containsKey('otherRegionsPrices')
              ? OtherRegionsSubscriptionOfferPhasePrices.fromJson(
                json_['otherRegionsPrices']
                    as core.Map<core.String, core.dynamic>,
              )
              : null,
      relativeDiscount: (json_['relativeDiscount'] as core.num?)?.toDouble(),
    );