GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec.fromJson constructor

GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec.fromJson(
  1. Map json_
)

Implementation

GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec.fromJson(
    core.Map json_)
    : this(
        freeTrialDuration: json_.containsKey('freeTrialDuration')
            ? GoogleCloudPaymentsResellerSubscriptionV1Duration.fromJson(
                json_['freeTrialDuration']
                    as core.Map<core.String, core.dynamic>)
            : null,
        introductoryPricingDetails: json_
                .containsKey('introductoryPricingDetails')
            ? GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails
                .fromJson(json_['introductoryPricingDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        promotion: json_.containsKey('promotion')
            ? json_['promotion'] as core.String
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );