ParentSavingsPlanOffering.fromJson constructor
ParentSavingsPlanOffering.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ParentSavingsPlanOffering.fromJson(Map<String, dynamic> json) {
return ParentSavingsPlanOffering(
currency: (json['currency'] as String?)?.toCurrencyCode(),
durationSeconds: json['durationSeconds'] as int?,
offeringId: json['offeringId'] as String?,
paymentOption:
(json['paymentOption'] as String?)?.toSavingsPlanPaymentOption(),
planDescription: json['planDescription'] as String?,
planType: (json['planType'] as String?)?.toSavingsPlanType(),
);
}