toJson method
override
Object to Map serializer
Implementation
@override
Map<String, dynamic> toJson() {
return {
'@type': 'poll',
if (extra != null) '@extra': extra,
'id': id,
'question': question,
'options': options,
'total_voter_count': total_voter_count,
'recent_voter_ids': recent_voter_ids,
'is_anonymous': is_anonymous,
'type': type,
'open_period': open_period,
'close_date': close_date,
'is_closed': is_closed
};
}