CampaignState class

State of the card Campaign

Constructors

CampaignState({required int localShowCount, required bool isClicked, required int firstReceived, required int firstSeen, required int totalShowCount})
CampaignState Constructor
CampaignState.fromJson(Map<String, dynamic> json)
Get CampaignState from Json Map
factory

Properties

firstReceived int
First Time the card was received.
final
firstSeen int
First Time the card was seen by the user.
final
hashCode int
The hash code for this object.
no setterinherited
isClicked bool
True if the user has clicked the card, else false.
getter/setter pair
localShowCount int
Number of times card shown on the current device
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalShowCount int
Total number of times campaign has been seen by the user across devices.
final

Methods

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

Operators

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