def from_dict(
        cls,
        filter_dict: Dict,
    ) -> "MetadataFilter":
        """
        Create MetadataFilter from dictionary.

        Args:
            filter_dict: Dict with key, value and operator.

        """
        return MetadataFilter.model_validate(filter_dict)

        Create MetadataFilter from dictionary.

        Args:
            filter_dict: Dict with key, value and operator.

        
llama-index-core/llama_index/core/vector_stores/types.py