InputPollOption class abstract

Represents an input poll option.

Annotations
  • @freezed

Constructors

InputPollOption.new({@JsonKey(name: 'text') required String text, @JsonKey(name: 'text_parse_mode') ParseMode? textParseMode, @JsonKey(name: 'text_entities') List<MessageEntity>? textEntities})
Creates an InputPollOption object.
const
factory
InputPollOption.fromJson(Map<String, dynamic> json)
Creates an InputPollOption object from a JSON map.
factory

Properties

copyWith → $InputPollOptionCopyWith<InputPollOption>
Create a copy of InputPollOption with the given fields replaced by the non-null parameter values.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
Option text, 1-100 characters.
no setterinherited
textEntities List<MessageEntity>?
Optional. A list of special entities that appear in the poll option text.
no setterinherited
textParseMode ParseMode?
Optional. Mode for parsing entities in the text.
no setterinherited

Methods

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

Operators

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