GoogleCloudPaymentsResellerSubscriptionV1Product.fromJson constructor
GoogleCloudPaymentsResellerSubscriptionV1Product.fromJson(
- Map json_
Implementation
GoogleCloudPaymentsResellerSubscriptionV1Product.fromJson(core.Map json_)
: this(
bundleDetails: json_.containsKey('bundleDetails')
? ProductBundleDetails.fromJson(
json_['bundleDetails'] as core.Map<core.String, core.dynamic>)
: null,
finiteBillingCycleDetails: json_
.containsKey('finiteBillingCycleDetails')
? GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails
.fromJson(json_['finiteBillingCycleDetails']
as core.Map<core.String, core.dynamic>)
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
priceConfigs: json_.containsKey('priceConfigs')
? (json_['priceConfigs'] as core.List)
.map((value) =>
GoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig
.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
productType: json_.containsKey('productType')
? json_['productType'] as core.String
: null,
regionCodes: json_.containsKey('regionCodes')
? (json_['regionCodes'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
subscriptionBillingCycleDuration:
json_.containsKey('subscriptionBillingCycleDuration')
? GoogleCloudPaymentsResellerSubscriptionV1Duration.fromJson(
json_['subscriptionBillingCycleDuration']
as core.Map<core.String, core.dynamic>)
: null,
titles: json_.containsKey('titles')
? (json_['titles'] as core.List)
.map((value) => GoogleTypeLocalizedText.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);