AdaptyAccessLevelInfo.fromJson constructor
AdaptyAccessLevelInfo.fromJson(
- Map<String, dynamic> json
)
Implementation
AdaptyAccessLevelInfo.fromJson(Map<String, dynamic> json)
: id = json[_Keys.id],
isActive = json[_Keys.isActive],
vendorProductId = json[_Keys.vendorProductId],
store = json[_Keys.store],
activatedAt = json.dateTimeOrNull(_Keys.activatedAt),
renewedAt = json.dateTimeOrNull(_Keys.renewedAt),
expiresAt = json.dateTimeOrNull(_Keys.expiresAt),
isLifetime = json[_Keys.isLifetime],
activeIntroductoryOfferType = json[_Keys.activeIntroductoryOfferType],
activePromotionalOfferType = json[_Keys.activePromotionalOfferType],
willRenew = json[_Keys.willRenew],
isInGracePeriod = json[_Keys.isInGracePeriod],
unsubscribedAt = json.dateTimeOrNull(_Keys.unsubscribedAt),
billingIssueDetectedAt = json.dateTimeOrNull(_Keys.billingIssueDetectedAt),
vendorTransactionId = json[_Keys.vendorTransactionId],
vendorOriginalTransactionId = json[_Keys.vendorOriginalTransactionId],
startsAt = json.dateTimeOrNull(_Keys.startsAt),
cancellationReason = json[_Keys.cancellationReason],
isRefund = json[_Keys.isRefund];