GameRewardChance class final

One unplayed chance. A missing or unreadable expiry sorts last; only a missing chance id drops the entry.

Constructors

GameRewardChance({required String chanceId, required String campaignId, String? format, String? rewardsPageTitle, DateTime? expiresAt, bool playable = true})
const

Properties

campaignId → String
final
chanceId → String
final
expiresAt → DateTime?
final
format → String?
final
hashCode → int
The hash code for this object.
no setterinherited
playable → bool
A chance with playable: false shows as unavailable, never hidden.
final
rewardsPageTitle → String?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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

Static Methods

expiry(Object? raw) → DateTime?
An expiry as an ISO-8601 string or an epoch (seconds or milliseconds). Anything else reads as null and sorts last.
fromJson(Map<String, dynamic> raw) → GameRewardChance?