# Generated by tools/generate_api_types.gd from server/openapi.json. # Do not edit; change the server and generate again. class_name CoverSource extends RefCounted ## The [code]CoverSource[/code] schema of the MusicServer API. ## The game's ID on SteamGridDB, or the anime's ID on AniList var id: String ## Where the cover comes from var source: String ## Reads the fields from parsed JSON. Missing fields keep their defaults. static func from_dict(data: Dictionary) -> CoverSource: var result: CoverSource = CoverSource.new() result.id = ApiJson.get_string(data, "id", "") result.source = ApiJson.get_string(data, "source", "") return result ## Returns the fields under their JSON names, ready for [method JSON.stringify]. func to_dict() -> Dictionary: return { "id": id, "source": source, }