GoogleCloudChannelV1PricePhase.fromJson constructor
GoogleCloudChannelV1PricePhase.fromJson(
- Map json_
Implementation
GoogleCloudChannelV1PricePhase.fromJson(core.Map json_)
: this(
firstPeriod: json_.containsKey('firstPeriod')
? json_['firstPeriod'] as core.int
: null,
lastPeriod: json_.containsKey('lastPeriod')
? json_['lastPeriod'] as core.int
: null,
periodType: json_.containsKey('periodType')
? json_['periodType'] as core.String
: null,
price: json_.containsKey('price')
? GoogleCloudChannelV1Price.fromJson(
json_['price'] as core.Map<core.String, core.dynamic>)
: null,
priceTiers: json_.containsKey('priceTiers')
? (json_['priceTiers'] as core.List)
.map((value) => GoogleCloudChannelV1PriceTier.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);