GameRewardsResponse class final
The getRewards response.
Constructors
-
GameRewardsResponse({required List<
GameRewardChance> chances, required List<Map< campaigns, required List<String, dynamic> >GameReward> active, required List<GameReward> used, required List<GameReward> expiredGrants, required List<GameExpiredChance> expiredChances, GameRewardsWidget? widget, String? emptyMessage, String? pageUrl}) -
const
Properties
-
active
→ List<
GameReward> -
final
-
campaigns
→ List<
Map< String, dynamic> > -
Raw campaign JSONs for paused or ended campaigns, same shape as the
bundle.
final
-
chances
→ List<
GameRewardChance> -
final
- emptyMessage → String?
-
final
-
expiredChances
→ List<
GameExpiredChance> -
final
-
expiredGrants
→ List<
GameReward> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
no setter
- pageUrl → String?
-
page.url: where the hosted rewards page lives for this environment.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
used
→ List<
GameReward> -
final
- widget → GameRewardsWidget?
-
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
Static Methods
-
fromJson(
Map< String, dynamic> raw) → GameRewardsResponse -
widgetContent(
{required List< GameRewardChance> chances, GameRewardsWidget? widget}) → GameRewardsWidgetContent - The widget content, hidden when the backend hides it or sends anything unknown.