Controls.fromJson constructor

Controls.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Controls.fromJson(Map<String, dynamic> json) {
  return Controls(
    backward: json["backward"],
    forward: json["forward"],
    cast: json["cast"],
    bigPlayButton: json["big_play_button"],
    captions: json["captions"],
    chapters: json["chapters"],
    currentTime: json["current_time"],
    duration: json["duration"],
    fullscreen: json["fullscreen"],
    mute: json["mute"],
    pictureInPicture: json["picture_in_picture"],
    playPause: json["play_pause"],
    progress: json["progress"],
    settings: json["settings"],
    volume: json["volume"],
    hideBranding: json["hide_branding"],
    preload: json["preload"],
    controlsVisible: json["controls_visible"],
    enableDownloadButton: json["enable_download_button"],
    loop: json["loop"],
  );
}