GoogleCloudPaymentsResellerSubscriptionV1Subscription.fromJson constructor

GoogleCloudPaymentsResellerSubscriptionV1Subscription.fromJson(
  1. Map json_
)

Implementation

GoogleCloudPaymentsResellerSubscriptionV1Subscription.fromJson(core.Map json_)
    : this(
        cancellationDetails: json_.containsKey('cancellationDetails')
            ? GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails
                .fromJson(json_['cancellationDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        cycleEndTime: json_.containsKey('cycleEndTime')
            ? json_['cycleEndTime'] as core.String
            : null,
        endUserEntitled: json_.containsKey('endUserEntitled')
            ? json_['endUserEntitled'] as core.bool
            : null,
        freeTrialEndTime: json_.containsKey('freeTrialEndTime')
            ? json_['freeTrialEndTime'] as core.String
            : null,
        lineItems: json_.containsKey('lineItems')
            ? (json_['lineItems'] as core.List)
                .map((value) =>
                    GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        partnerUserToken: json_.containsKey('partnerUserToken')
            ? json_['partnerUserToken'] as core.String
            : null,
        processingState: json_.containsKey('processingState')
            ? json_['processingState'] as core.String
            : null,
        products: json_.containsKey('products')
            ? (json_['products'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        promotionSpecs: json_.containsKey('promotionSpecs')
            ? (json_['promotionSpecs'] as core.List)
                .map((value) =>
                    GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        promotions: json_.containsKey('promotions')
            ? (json_['promotions'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        redirectUri: json_.containsKey('redirectUri')
            ? json_['redirectUri'] as core.String
            : null,
        renewalTime: json_.containsKey('renewalTime')
            ? json_['renewalTime'] as core.String
            : null,
        serviceLocation: json_.containsKey('serviceLocation')
            ? GoogleCloudPaymentsResellerSubscriptionV1Location.fromJson(
                json_['serviceLocation']
                    as core.Map<core.String, core.dynamic>)
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
        upgradeDowngradeDetails: json_.containsKey('upgradeDowngradeDetails')
            ? GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails
                .fromJson(json_['upgradeDowngradeDetails']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );