async def get(self,request_configuration: Optional[RequestConfiguration[ScopedRoleMembershipItemRequestBuilderGetQueryParameters]] = None) -> Optional[ScopedRoleMembership]:
        """
        Get entity from scopedRoleMemberships by key
        param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
        Returns: Optional[ScopedRoleMembership]
        """
        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.scoped_role_membership import ScopedRoleMembership

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

        Get entity from scopedRoleMemberships by key
        param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
        Returns: Optional[ScopedRoleMembership]
        
msgraph/generated/scoped_role_memberships/item/scoped_role_membership_item_request_builder.py