PollAnswer class

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

Constructors

PollAnswer({required String pollId, required User? user, required List<int> optionIds, Chat? voterChat})
Constructs a PollAnswer object
const
PollAnswer.fromJson(Map<String, dynamic> json)
Creates a PollAnswer object from JSON object
factory

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.
final
pollId String
Unique poll identifier
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
user User?
The user, who changed the answer to the poll
final
voterChat Chat?
Optional. The chat that changed the answer to the poll, if the voter is anonymous
final

Methods

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

Operators

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