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