GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec.fromJson constructor

GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec.fromJson(
  1. Map json_
)

Implementation

GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec.fromJson(
    core.Map json_)
    : this(
        discountAmount: json_.containsKey('discountAmount')
            ? GoogleCloudPaymentsResellerSubscriptionV1Amount.fromJson(
                json_['discountAmount']
                    as core.Map<core.String, core.dynamic>)
            : null,
        discountRatioMicros: json_.containsKey('discountRatioMicros')
            ? json_['discountRatioMicros'] as core.String
            : null,
        recurrenceCount: json_.containsKey('recurrenceCount')
            ? json_['recurrenceCount'] as core.int
            : null,
        regionCode: json_.containsKey('regionCode')
            ? json_['regionCode'] as core.String
            : null,
      );