Embed.fromJson constructor

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

Implementation

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