PollAnswer class

This object represents an answer of a user in a non-anonymous poll.

Constructors

PollAnswer({required String pollId, Chat? voterChat, User? user, required List<int> optionIds})
Basic constructor

Properties

hashCode int
The hash code for this object.
no setterinherited
optionIds List<int>
0-based identifiers of answer options, chosen by the user. May be empty if the user retracted their vote.
getter/setter pair
pollId String
Unique poll identifier
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
user User?
Optional. The user that changed the answer to the poll, if the voter isn't anonymous
getter/setter pair
voterChat Chat?
Optional. The chat that changed the answer to the poll, if the voter is anonymous
getter/setter pair

Methods

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

Operators

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

Static Methods

fromJson(Map<String, dynamic> json) PollAnswer
Creates a object from a json