toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data["fullscreen"] = this.fullscreen;
data["byline"] = this.byline;
data["like"] = this.like;
data["playbar"] = this.playbar;
data["title"] = this.title;
data["color"] = this.color;
data["speed"] = this.speed;
data["watch_later"] = this.watchLater;
data["share"] = this.share;
data["scaling"] = this.scaling;
data["spatial_compass"] = this.spatialCompass;
data["collections"] = this.collections;
data["portrait"] = this.portrait;
data["logo"] = this.logo;
data["embed"] = this.embed;
if (this.badge != null) data["badge"] = this.badge?.toJson();
data["spatial_label"] = this.spatialLabel;
data["volume"] = this.volume;
return data;
}