# Generated by tools/generate_api_types.gd from server/openapi.json. # Do not edit; change the server and generate again. class_name UploadFile extends RefCounted ## The [code]UploadFile[/code] schema of the MusicServer API. var name: String var size: int ## Reads the fields from parsed JSON. Missing fields keep their defaults. static func from_dict(data: Dictionary) -> UploadFile: var result: UploadFile = UploadFile.new() result.name = ApiJson.get_string(data, "name", "") result.size = ApiJson.get_int(data, "size", 0) return result ## Returns the fields under their JSON names, ready for [method JSON.stringify]. func to_dict() -> Dictionary: return { "name": name, "size": size, }