toJson method
Converts a PollAnswer object to JSON object
Implementation
Map<String, dynamic> toJson() {
return {
'poll_id': pollId,
'user': user?.toJson(),
'option_ids': optionIds,
'voter_chat': voterChat?.toJson(),
}..removeWhere(_nullFilter);
}