GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem.fromJson constructor

GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem.fromJson(
  1. Map json_
)

Implementation

GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem.fromJson(
    core.Map json_)
    : this(
        amount: json_.containsKey('amount')
            ? GoogleCloudPaymentsResellerSubscriptionV1Amount.fromJson(
                json_['amount'] as core.Map<core.String, core.dynamic>)
            : null,
        bundleDetails: json_.containsKey('bundleDetails')
            ? SubscriptionLineItemBundleDetails.fromJson(
                json_['bundleDetails'] as core.Map<core.String, core.dynamic>)
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        finiteBillingCycleDetails: json_
                .containsKey('finiteBillingCycleDetails')
            ? GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails
                .fromJson(json_['finiteBillingCycleDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        lineItemFreeTrialEndTime:
            json_.containsKey('lineItemFreeTrialEndTime')
                ? json_['lineItemFreeTrialEndTime'] as core.String
                : null,
        lineItemIndex: json_.containsKey('lineItemIndex')
            ? json_['lineItemIndex'] as core.int
            : null,
        lineItemPromotionSpecs: json_.containsKey('lineItemPromotionSpecs')
            ? (json_['lineItemPromotionSpecs'] as core.List)
                .map((value) =>
                    GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        oneTimeRecurrenceDetails: json_
                .containsKey('oneTimeRecurrenceDetails')
            ? GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails
                .fromJson(json_['oneTimeRecurrenceDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        product: json_.containsKey('product')
            ? json_['product'] as core.String
            : null,
        productPayload: json_.containsKey('productPayload')
            ? GoogleCloudPaymentsResellerSubscriptionV1ProductPayload
                .fromJson(json_['productPayload']
                    as core.Map<core.String, core.dynamic>)
            : null,
        recurrenceType: json_.containsKey('recurrenceType')
            ? json_['recurrenceType'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
      );