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