# Generated by tools/generate_api_types.gd from server/openapi.json. # Do not edit; change the server and generate again. class_name AlternativeNames extends RefCounted ## The [code]AlternativeNames[/code] schema of the MusicServer API. ## The new list of alternative names. Replaces the old list; send [] to remove them all. var names: Array[String] ## Reads the fields from parsed JSON. Missing fields keep their defaults. static func from_dict(data: Dictionary) -> AlternativeNames: var result: AlternativeNames = AlternativeNames.new() result.names.assign(ApiJson.get_array(data, "names")) return result ## Returns the fields under their JSON names, ready for [method JSON.stringify]. func to_dict() -> Dictionary: return { "names": names, }