def from_dict(cls, data: dict):
        """
        Creates an instance of `QueryFileResult` from a dictionary.

        Args:
            data (dict): A dictionary containing the necessary keys and values corresponding to the class attributes.

        Returns:
            QueryFileResult: An instance of `QueryFileResult` populated with data from the input dictionary.

        """
        default_values = {
            "file_id": "",
            "status": "",
            "file_name": "",
            "file_type": "",
            "parser": "",
            "size_bytes": 0,
            "upload_time": "",
            "category": "",
        }

        return cls(
            file_id=data.get("file_id", default_values["file_id"]),
            status=data.get("status", default_values["status"]),
            file_name=data.get("file_name", default_values["file_name"]),
            file_type=data.get("file_type", default_values["file_type"]),
            parser=data.get("parser", default_values["parser"]),
            size_bytes=data.get("size_bytes", default_values["size_bytes"]),
            upload_time=data.get("upload_time", default_values["upload_time"]),
            category=data.get("category", default_values["category"]),
        )

        Creates an instance of `QueryFileResult` from a dictionary.

        Args:
            data (dict): A dictionary containing the necessary keys and values corresponding to the class attributes.

        Returns:
            QueryFileResult: An instance of `QueryFileResult` populated with data from the input dictionary.

        
llama-index-integrations/readers/llama-index-readers-dashscope/llama_index/readers/dashscope/domain/lease_domains.py