SubscriptionInfo.fromJson constructor
SubscriptionInfo.fromJson(
- Map<String, dynamic> json
)
Implementation
factory SubscriptionInfo.fromJson(Map<String, dynamic> json) =>
SubscriptionInfo(
json['productIdentifier'] as String,
json['purchaseDate'] as String,
json['isSandbox'] as bool,
json['isActive'] as bool,
json['willRenew'] as bool,
originalPurchaseDate: json['originalPurchaseDate'] as String?,
expiresDate: json['expiresDate'] as String?,
store: storeFromJson(json['store']),
unsubscribeDetectedAt: json['unsubscribeDetectedAt'] as String?,
billingIssuesDetectedAt: json['billingIssuesDetectedAt'] as String?,
gracePeriodExpiresDate: json['gracePeriodExpiresDate'] as String?,
ownershipType: ownershipTypeFromJson(json['ownershipType']),
periodType: periodTypeFromJson(json['periodType']),
refundedAt: json['refundedAt'] as String?,
storeTransactionId: json['storeTransactionId'] as String?,
autoResumeDate: json['autoResumeDate'] as String?,
displayName: json['displayName'] as String?,
managementURL: json['managementURL'] as String?,
productPlanIdentifier: json['productPlanIdentifier'] as String?,
);