EntitlementInfo.fromJson constructor
EntitlementInfo.fromJson(
- Map<String, dynamic> json
)
Implementation
factory EntitlementInfo.fromJson(Map<String, dynamic> json) =>
EntitlementInfo(
json['identifier'] as String,
json['isActive'] as bool,
json['willRenew'] as bool,
json['latestPurchaseDate'] as String,
json['originalPurchaseDate'] as String,
json['productIdentifier'] as String,
json['isSandbox'] as bool,
ownershipType: _ownershipTypeFromJson(json['ownershipType']),
store: storeFromJson(json['store']),
periodType: _periodTypeFromJson(json['periodType']),
expirationDate: json['expirationDate'] as String?,
unsubscribeDetectedAt: json['unsubscribeDetectedAt'] as String?,
billingIssueDetectedAt: json['billingIssueDetectedAt'] as String?,
productPlanIdentifier: json['productPlanIdentifier'] as String?,
verification: verificationResultFromJson(json['verification']),
);