toJson method
override
Object to Map serializer
Implementation
@override
Map<String, dynamic> toJson() {
return {
'@type': 'forumTopic',
if (extra != null) '@extra': extra,
'info': info,
'last_message': last_message,
'is_pinned': is_pinned,
'unread_count': unread_count,
'last_read_inbox_message_id': last_read_inbox_message_id,
'last_read_outbox_message_id': last_read_outbox_message_id,
'unread_mention_count': unread_mention_count,
'unread_reaction_count': unread_reaction_count,
'notification_settings': notification_settings,
'draft_message': draft_message
};
}