VimeoSettings.fromJson constructor

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

Implementation

VimeoSettings.fromJson(Map<String, dynamic> json) {
  if (json["fullscreen"] is int) this.fullscreen = json["fullscreen"];
  if (json["byline"] is int) this.byline = json["byline"];
  if (json["like"] is int) this.like = json["like"];
  if (json["playbar"] is int) this.playbar = json["playbar"];
  if (json["title"] is int) this.title = json["title"];
  if (json["color"] is int) this.color = json["color"];
  if (json["speed"] is int) this.speed = json["speed"];
  if (json["watch_later"] is int) this.watchLater = json["watch_later"];
  if (json["share"] is int) this.share = json["share"];
  if (json["scaling"] is int) this.scaling = json["scaling"];
  if (json["spatial_compass"] is int)
    this.spatialCompass = json["spatial_compass"];
  if (json["collections"] is int) this.collections = json["collections"];
  if (json["portrait"] is int) this.portrait = json["portrait"];
  if (json["logo"] is int) this.logo = json["logo"];
  if (json["embed"] is int) this.embed = json["embed"];
  if (json["badge"] is Map)
    this.badge = json["badge"] == null ? null : Badge.fromJson(json["badge"]);
  if (json["spatial_label"] is int) this.spatialLabel = json["spatial_label"];
  if (json["volume"] is int) this.volume = json["volume"];
}