RenewalInfoIOS.fromJson constructor
RenewalInfoIOS.fromJson(
- Map<String, dynamic> json
)
Implementation
factory RenewalInfoIOS.fromJson(Map<String, dynamic> json) {
return RenewalInfoIOS(
autoRenewPreference: json['autoRenewPreference'] as String?,
expirationReason: json['expirationReason'] as String?,
gracePeriodExpirationDate: (json['gracePeriodExpirationDate'] as num?)?.toDouble(),
isInBillingRetry: json['isInBillingRetry'] as bool?,
jsonRepresentation: json['jsonRepresentation'] as String?,
pendingUpgradeProductId: json['pendingUpgradeProductId'] as String?,
priceIncreaseStatus: json['priceIncreaseStatus'] as String?,
renewalDate: (json['renewalDate'] as num?)?.toDouble(),
renewalOfferId: json['renewalOfferId'] as String?,
renewalOfferType: json['renewalOfferType'] as String?,
willAutoRenew: json['willAutoRenew'] as bool,
);
}