toJson method
Converts this object to TDLib JSON.
Implementation
@override
Map<String, dynamic> toJson() => {
'@type': CONSTRUCTOR,
'id': id.toString(),
'question': question,
'options': [for (final e in options) e.toJson()],
'total_voter_count': totalVoterCount,
'recent_voter_ids': [for (final e in recentVoterIds) e.toJson()],
'is_anonymous': isAnonymous,
'type': type.toJson(),
'open_period': openPeriod,
'close_date': closeDate,
'is_closed': isClosed,
};