QEntitlement class

Annotations
  • @JsonSerializable(createToJson: false)

Constructors

QEntitlement(String id, String productId, QEntitlementRenewState renewState, QEntitlementSource source, DateTime? startedDate, DateTime? expirationDate, bool isActive)
const
QEntitlement.fromJson(Map<String, dynamic> json)
factory

Properties

expirationDate DateTime?
Expiration date for subscription
final
hashCode int
The hash code for this object.
no setterinherited
id String
Qonversion Entitlement ID, like premium.
final
isActive bool
Use for checking entitlement for current user. Pay attention, isActive == true does not mean that subscription is renewable. Subscription could be canceled, but the user could still have a entitlement
final
productId String
Product ID created in Qonversion Dashboard.
final
renewState QEntitlementRenewState
A renew state for an associate product that unlocked entitlement
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source QEntitlementSource
A source determining where this entitlement is originally from - App Store, Play Store, Stripe, etc.
final
startedDate DateTime?
Purchase date
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited