UserSubscription class

Annotations
  • @JsonSerializable(checked: true, createToJson: true, disallowUnrecognizedKeys: false, explicitToJson: true)

Constructors

UserSubscription({required String id, required String transactionId, required String store, String? steamItemId, required num amount, required String description, required SubscriptionPeriod period, required num tier, bool active = true, required TransactionStatus status, required DateTime expires, required DateTime createdAt, required DateTime updatedAt, required List<String> licenseGroups, bool isGift = false})
Returns a new UserSubscription instance.
UserSubscription.fromJson(Map<String, dynamic> json)
factory

Properties

active bool
final
amount num
final
createdAt DateTime
final
description String
final
expires DateTime
final
hashCode int
The hash code for this object.
no setteroverride
id String
final
isGift bool
final
licenseGroups List<String>
final
period SubscriptionPeriod
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status TransactionStatus
final
steamItemId String?
final
store String
Which "Store" it came from. Right now only Stores are "Steam" and "Admin".
final
tier num
final
transactionId String
final
updatedAt DateTime
final

Methods

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

Operators

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