toJson method
override
Object to Map serializer
Implementation
@override
Map<String, dynamic> toJson() {
return {
'@type': 'chat',
if (extra != null) '@extra': extra,
'id': id,
'type': type,
'title': title,
'photo': photo,
'permissions': permissions,
'last_message': last_message,
'positions': positions,
'message_sender_id': message_sender_id,
'block_list': block_list,
'has_protected_content': has_protected_content,
'is_translatable': is_translatable,
'is_marked_as_unread': is_marked_as_unread,
'has_scheduled_messages': has_scheduled_messages,
'can_be_deleted_only_for_self': can_be_deleted_only_for_self,
'can_be_deleted_for_all_users': can_be_deleted_for_all_users,
'can_be_reported': can_be_reported,
'default_disable_notification': default_disable_notification,
'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,
'available_reactions': available_reactions,
'message_auto_delete_time': message_auto_delete_time,
'background': background,
'theme_name': theme_name,
'action_bar': action_bar,
'video_chat': video_chat,
'pending_join_requests': pending_join_requests,
'reply_markup_message_id': reply_markup_message_id,
'draft_message': draft_message,
'client_data': client_data
};
}