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