toJson method
Converts an object to JSON.
Implementation
@override
Map<String, dynamic> toJson() {
final returnValue = <String, dynamic>{
'\$hash': 'd64c522b',
'\$name': 'UpdateMessagePoll',
'flags': flags,
'peer': peer,
'msgId': msgId,
'topMsgId': topMsgId,
'pollId': pollId,
'poll': poll,
'results': results,
};
// Finished toJson.
return returnValue;
}