AdaptySubscriptionInfo.fromJson constructor

AdaptySubscriptionInfo.fromJson(
  1. Map<String, dynamic> json
)

Implementation

AdaptySubscriptionInfo.fromJson(Map<String, dynamic> json)
    : 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),
      startsAt = json.dateTimeOrNull(_Keys.startsAt),
      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),
      isSandbox = json[_Keys.isSandbox],
      vendorTransactionId = json[_Keys.vendorTransactionId],
      vendorOriginalTransactionId = json[_Keys.vendorOriginalTransactionId],
      cancellationReason = json[_Keys.cancellationReason],
      isRefund = json[_Keys.isRefund];