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.

        """
        if "param" not in data:
            raise ValueError("download_lease result param is required")

        default_values = {
            "file_id": "",
            "lease_id": "",
            "file_name": "",
            "type": FileDownloadType.HTTP.value,
            "param": HttpDownloadParameter.from_dict(data["param"]),
        }

        return cls(
            file_id=data.get("file_id", default_values["file_id"]),
            lease_id=data.get("lease_id", default_values["lease_id"]),
            file_name=data.get("file_name", default_values["file_name"]),
            type=FileDownloadType.from_value(data.get("type", default_values["type"])),
            param=default_values["param"],
        )

        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