# Generated by tools/generate_api_types.gd from server/openapi.json. # Do not edit; change the server and generate again. class_name TokenRequest extends RefCounted ## The [code]TokenRequest[/code] schema of the MusicServer API. ## Kind of client, for example web, godot or api var client_type: String = "web" ## API password, required when the server has one configured var password: String ## Reads the fields from parsed JSON. Missing fields keep their defaults. static func from_dict(data: Dictionary) -> TokenRequest: var result: TokenRequest = TokenRequest.new() result.client_type = ApiJson.get_string(data, "client_type", "web") result.password = ApiJson.get_string(data, "password", "") return result ## Returns the fields under their JSON names, ready for [method JSON.stringify]. func to_dict() -> Dictionary: return { "client_type": client_type, "password": password, }