UserSubscription constructor
UserSubscription({
- String subscriptionId = '',
- String userId = '',
- SubscriptionLevel? level,
- Price? price,
- SubscriptionStatus? status,
- int startDate = 0,
- int endDate = 0,
- CancellationReason? endReason,
- int? graceUntil,
- int failedAttempts = 0,
- bool pendingDowngrade = false,
- 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,
});