InputPollOption.fromJson constructor
Creates an InputPollOption object from a JSON map.
Implementation
factory InputPollOption.fromJson(Map<String, dynamic> json) {
return InputPollOption(
text: json['text'],
textParseMode: json['text_parse_mode'],
textEntities: (json['text_entities'] as List<dynamic>?)
?.map((entity) => MessageEntity.fromJson(entity))
.toList(),
);
}