# Generated by tools/generate_api_types.gd from server/openapi.json. # Do not edit; change the server and generate again. class_name ProgressResponse extends RefCounted ## The [code]ProgressResponse[/code] schema of the MusicServer API. var progress: String ## How long the sync has been running, as minutes and seconds, e.g. "02:15" var time_spent: String ## Reads the fields from parsed JSON. Missing fields keep their defaults. static func from_dict(data: Dictionary) -> ProgressResponse: var result: ProgressResponse = ProgressResponse.new() result.progress = ApiJson.get_string(data, "progress", "") result.time_spent = ApiJson.get_string(data, "time_spent", "") return result ## Returns the fields under their JSON names, ready for [method JSON.stringify]. func to_dict() -> Dictionary: return { "progress": progress, "time_spent": time_spent, }