async def get(self,request_configuration: Optional[RequestConfiguration[ChatsRequestBuilderGetQueryParameters]] = None) -> Optional[ChatCollectionResponse]:
        """
        Retrieve the list of chats that the user is part of. This method supports federation. When a user ID is provided, the calling application must belong to the same tenant that the user belongs to.
        param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
        Returns: Optional[ChatCollectionResponse]
        Find more info here: https://learn.microsoft.com/graph/api/chat-list?view=graph-rest-1.0
        """
        request_info = self.to_get_request_information(
            request_configuration
        )
        from ..models.o_data_errors.o_data_error import ODataError

        error_mapping: dict[str, type[ParsableFactory]] = {
            "XXX": ODataError,
        }
        if not self.request_adapter:
            raise Exception("Http core is null") 
        from ..models.chat_collection_response import ChatCollectionResponse

        return await self.request_adapter.send_async(request_info, ChatCollectionResponse, error_mapping)

        Retrieve the list of chats that the user is part of. This method supports federation. When a user ID is provided, the calling application must belong to the same tenant that the user belongs to.
        param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
        Returns: Optional[ChatCollectionResponse]
        Find more info here: https://learn.microsoft.com/graph/api/chat-list?view=graph-rest-1.0
        
msgraph/generated/chats/chats_request_builder.py