toJson method
Converts an object to JSON.
Implementation
@override
Map<String, dynamic> toJson() {
final returnValue = <String, dynamic>{
'\$hash': 'fc89f7f3',
'\$name': 'Dialog',
'flags': flags,
'pinned': pinned,
'unreadMark': unreadMark,
'viewForumAsMessages': viewForumAsMessages,
'peer': peer,
'topMessage': topMessage,
'readInboxMaxId': readInboxMaxId,
'readOutboxMaxId': readOutboxMaxId,
'unreadCount': unreadCount,
'unreadMentionsCount': unreadMentionsCount,
'unreadReactionsCount': unreadReactionsCount,
'unreadPollVotesCount': unreadPollVotesCount,
'notifySettings': notifySettings,
'pts': pts,
'draft': draft,
'folderId': folderId,
'ttlPeriod': ttlPeriod,
};
// Finished toJson.
return returnValue;
}