BasePlan.fromJson constructor
BasePlan.fromJson(
- Map json_
Implementation
BasePlan.fromJson(core.Map json_)
: this(
autoRenewingBasePlanType:
json_.containsKey('autoRenewingBasePlanType')
? AutoRenewingBasePlanType.fromJson(
json_['autoRenewingBasePlanType']
as core.Map<core.String, core.dynamic>)
: null,
basePlanId: json_.containsKey('basePlanId')
? json_['basePlanId'] as core.String
: null,
installmentsBasePlanType:
json_.containsKey('installmentsBasePlanType')
? InstallmentsBasePlanType.fromJson(
json_['installmentsBasePlanType']
as core.Map<core.String, core.dynamic>)
: null,
offerTags: json_.containsKey('offerTags')
? (json_['offerTags'] as core.List)
.map((value) => OfferTag.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
otherRegionsConfig: json_.containsKey('otherRegionsConfig')
? OtherRegionsBasePlanConfig.fromJson(json_['otherRegionsConfig']
as core.Map<core.String, core.dynamic>)
: null,
prepaidBasePlanType: json_.containsKey('prepaidBasePlanType')
? PrepaidBasePlanType.fromJson(json_['prepaidBasePlanType']
as core.Map<core.String, core.dynamic>)
: null,
regionalConfigs: json_.containsKey('regionalConfigs')
? (json_['regionalConfigs'] as core.List)
.map((value) => RegionalBasePlanConfig.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
state:
json_.containsKey('state') ? json_['state'] as core.String : null,
);