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