SubscriptionOfferPhase.fromJson constructor
SubscriptionOfferPhase.fromJson(
- Map json_
Implementation
SubscriptionOfferPhase.fromJson(core.Map json_)
: this(
duration: json_.containsKey('duration')
? json_['duration'] as core.String
: null,
otherRegionsConfig: json_.containsKey('otherRegionsConfig')
? OtherRegionsSubscriptionOfferPhaseConfig.fromJson(
json_['otherRegionsConfig']
as core.Map<core.String, core.dynamic>)
: null,
recurrenceCount: json_.containsKey('recurrenceCount')
? json_['recurrenceCount'] as core.int
: null,
regionalConfigs: json_.containsKey('regionalConfigs')
? (json_['regionalConfigs'] as core.List)
.map((value) => RegionalSubscriptionOfferPhaseConfig.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);