Entitlement class
A single granted (or expired) entitlement.
Mirrors RvEntitlement / Entitlement.
- Annotations
Constructors
- Entitlement({required String id, required bool active, String? expiresAt, String? productId})
-
const
Properties
- active → bool
-
final
- expiresAt → String?
-
ISO-8601 expiry timestamp, if the entitlement has one (absent for
non-expiring/lifetime grants).
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → String
-
final
- productId → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{String? id, bool? active, String? expiresAt, String? productId}) → Entitlement -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override