toJson method
Converts a PollOption object to a JSON object
Implementation
Map<String, dynamic> toJson() {
return {
'text': text,
'voter_count': voterCount,
'text_entities': textEntities?.map((e) => e.toJson()).toList(),
}..removeWhere(_nullFilter);
}