toJson method
override
Object to Map serializer
Implementation
@override
Map<String, dynamic> toJson() {
return {
'@type': 'pollOption',
if (extra != null) '@extra': extra,
'text': text,
'voter_count': voter_count,
'vote_percentage': vote_percentage,
'is_chosen': is_chosen,
'is_being_chosen': is_being_chosen
};
}