@tool
extends TwitchData

# CLASS GOT AUTOGENERATED DON'T CHANGE MANUALLY. CHANGES CAN BE OVERWRITTEN EASILY.

## 
## #/components/schemas/ChannelTeam
class_name TwitchChannelTeam
	
## An ID that identifies the broadcaster.
@export var broadcaster_id: String:
	set(val): 
		broadcaster_id = val
		track_data(&"broadcaster_id", val)

## The broadcaster’s login name.
@export var broadcaster_login: String:
	set(val): 
		broadcaster_login = val
		track_data(&"broadcaster_login", val)

## The broadcaster’s display name.
@export var broadcaster_name: String:
	set(val): 
		broadcaster_name = val
		track_data(&"broadcaster_name", val)

## A URL to the team’s background image.
@export var background_image_url: String:
	set(val): 
		background_image_url = val
		track_data(&"background_image_url", val)

## A URL to the team’s banner.
@export var banner: String:
	set(val): 
		banner = val
		track_data(&"banner", val)

## The UTC date and time (in RFC3339 format) of when the team was created.
@export var created_at: String:
	set(val): 
		created_at = val
		track_data(&"created_at", val)

## The UTC date and time (in RFC3339 format) of the last time the team was updated.
@export var updated_at: String:
	set(val): 
		updated_at = val
		track_data(&"updated_at", val)

## The team’s description. The description may contain formatting such as Markdown, HTML, newline (\\n) characters, etc.
@export var info: String:
	set(val): 
		info = val
		track_data(&"info", val)

## A URL to a thumbnail image of the team’s logo.
@export var thumbnail_url: String:
	set(val): 
		thumbnail_url = val
		track_data(&"thumbnail_url", val)

## The team’s name.
@export var team_name: String:
	set(val): 
		team_name = val
		track_data(&"team_name", val)

## The team’s display name.
@export var team_display_name: String:
	set(val): 
		team_display_name = val
		track_data(&"team_display_name", val)

## An ID that identifies the team.
@export var id: String:
	set(val): 
		id = val
		track_data(&"id", val)
var response: BufferedHTTPClient.ResponseData


## Constructor with all required fields.
static func create(_broadcaster_id: String, _broadcaster_login: String, _broadcaster_name: String, _background_image_url: String, _banner: String, _created_at: String, _updated_at: String, _info: String, _thumbnail_url: String, _team_name: String, _team_display_name: String, _id: String) -> TwitchChannelTeam:
	var twitch_channel_team: TwitchChannelTeam = TwitchChannelTeam.new()
	twitch_channel_team.broadcaster_id = _broadcaster_id
	twitch_channel_team.broadcaster_login = _broadcaster_login
	twitch_channel_team.broadcaster_name = _broadcaster_name
	twitch_channel_team.background_image_url = _background_image_url
	twitch_channel_team.banner = _banner
	twitch_channel_team.created_at = _created_at
	twitch_channel_team.updated_at = _updated_at
	twitch_channel_team.info = _info
	twitch_channel_team.thumbnail_url = _thumbnail_url
	twitch_channel_team.team_name = _team_name
	twitch_channel_team.team_display_name = _team_display_name
	twitch_channel_team.id = _id
	return twitch_channel_team


static func from_json(d: Dictionary) -> TwitchChannelTeam:
	var result: TwitchChannelTeam = TwitchChannelTeam.new()
	if d.get("broadcaster_id", null) != null:
		result.broadcaster_id = d["broadcaster_id"]
	if d.get("broadcaster_login", null) != null:
		result.broadcaster_login = d["broadcaster_login"]
	if d.get("broadcaster_name", null) != null:
		result.broadcaster_name = d["broadcaster_name"]
	if d.get("background_image_url", null) != null:
		result.background_image_url = d["background_image_url"]
	if d.get("banner", null) != null:
		result.banner = d["banner"]
	if d.get("created_at", null) != null:
		result.created_at = d["created_at"]
	if d.get("updated_at", null) != null:
		result.updated_at = d["updated_at"]
	if d.get("info", null) != null:
		result.info = d["info"]
	if d.get("thumbnail_url", null) != null:
		result.thumbnail_url = d["thumbnail_url"]
	if d.get("team_name", null) != null:
		result.team_name = d["team_name"]
	if d.get("team_display_name", null) != null:
		result.team_display_name = d["team_display_name"]
	if d.get("id", null) != null:
		result.id = d["id"]
	return result
