CrosspayStorableEntitlement class sealed

Annotations
  • @freezed

Constructors

CrosspayStorableEntitlement({required String id, @JsonKey.new(name: "product_id") required String productId, @JsonKey.new(name: "entitlement_id") required String entitlementId, @JsonKey.new(name: "expires_at", fromJson: _dateTimeFromEpoch, toJson: _dateTimeToEpoch) required DateTime expiresAt, @JsonKey.new(name: "trial_expires_at", fromJson: _dateTimeNullableFromEpoch, toJson: _dateTimeNullableToEpoch) DateTime? trialExpiresAt, required CrosspayStore store, required EntitlementStatus status, @JsonKey.new(name: "renewal_status") required SubscriptionRenewalStatus? renewalStatus, @JsonKey.new(name: "entitlement_type") required EntitlementType entitlementType, @JsonKey.new(name: "purchase_state") String? purchaseState})
factory
CrosspayStorableEntitlement.fromJson(Map<String, dynamic> json)
factory

Properties

copyWith → $CrosspayStorableEntitlementCopyWith<CrosspayStorableEntitlement>
Create a copy of CrosspayStorableEntitlement with the given fields replaced by the non-null parameter values.
no setterinherited
entitlementId → String
no setterinherited
entitlementType → EntitlementType
no setterinherited
expiresAt → DateTime
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
id → String
no setterinherited
productId → String
no setterinherited
purchaseState → String?
no setterinherited
renewalStatus → SubscriptionRenewalStatus?
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → EntitlementStatus
no setterinherited
store → CrosspayStore
no setterinherited
trialExpiresAt → DateTime?
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serializes this CrosspayStorableEntitlement to a JSON map.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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