PollCreateParams class
Parameters for creating poll and updating poll operations. For poll creation, title and optionTexts are required and all other members are optional. For poll update, all members are optional.
- Annotations
-
- @JsonSerializable()
Constructors
Properties
- allowMultipleVotes ↔ bool?
-
Whether to allow multiple vote casting
getter/setter pair
- allowUserSuggestion ↔ bool?
-
Whether to allow user-suggested options
getter/setter pair
- closeAt ↔ int
-
Unix timestamp at which the poll has closed or will close (second)
getter/setter pair
- data ↔ PollData?
-
An additional text to accompany the poll.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
optionTexts
↔ List<
String> -
Options for this poll.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title ↔ String
-
Title of the poll.
getter/setter pair
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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
Map< String, dynamic> json) → PollCreateParams