Embed.fromJson constructor

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

Implementation

Embed.fromJson(Map<String, dynamic> json) {
  if (json["autopause"] is int) this.autopause = json["autopause"];
  if (json["playsinline"] is int) this.playsinline = json["playsinline"];
  if (json["settings"] is Map)
    this.settings = json["settings"] == null
        ? null
        : VimeoSettings.fromJson(json["settings"]);
  if (json["color"] is String) this.color = json["color"];
  if (json["texttrack"] is String) this.texttrack = json["texttrack"];
  if (json["on_site"] is int) this.onSite = json["on_site"];
  if (json["app_id"] is String) this.appId = json["app_id"];
  if (json["muted"] is int) this.muted = json["muted"];
  if (json["dnt"] is int) this.dnt = json["dnt"];
  if (json["player_id"] is String) this.playerId = json["player_id"];
  this.api = json["api"];
  if (json["editor"] is bool) this.editor = json["editor"];
  if (json["context"] is String) this.context = json["context"];
  if (json["keyboard"] is int) this.keyboard = json["keyboard"];
  if (json["outro"] is String) this.outro = json["outro"];
  if (json["transparent"] is int) this.transparent = json["transparent"];
  if (json["log_plays"] is int) this.logPlays = json["log_plays"];
  this.quality = json["quality"];
  if (json["time"] is int) this.time = json["time"];
  if (json["loop"] is int) this.loop = json["loop"];
  if (json["autoplay"] is int) this.autoplay = json["autoplay"];
}