PollAnswer class

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

https://core.telegram.org/bots/api#pollanswer

Annotations
  • @JsonSerializable.new(includeIfNull: false)

Constructors

PollAnswer({String? pollID, User? user, List<int>? optionsIDs})
PollAnswer.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
optionsIDs ↔ 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?
The user, who changed the answer to 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