UserSubscription constructor

UserSubscription({
  1. String subscriptionId = '',
  2. String userId = '',
  3. SubscriptionLevel? level,
  4. Price? price,
  5. SubscriptionStatus? status,
  6. int startDate = 0,
  7. int endDate = 0,
  8. CancellationReason? endReason,
  9. int? graceUntil,
  10. int failedAttempts = 0,
  11. bool pendingDowngrade = false,
  12. Map<String, dynamic>? lastFailure,
})

Implementation

UserSubscription({
  this.subscriptionId = '',
  this.userId = '',
  this.level,
  this.price,
  this.status,
  this.startDate = 0,
  this.endDate = 0,
  this.endReason,
  this.graceUntil,
  this.failedAttempts = 0,
  this.pendingDowngrade = false,
  this.lastFailure,
  // this.renewalDate,
  // this.autoRenew = true,
  // this.paymentMethodId,

});