VimeoConfig.fromJson constructor

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

Implementation

VimeoConfig.fromJson(Map<String, dynamic> json) {
  if (json["cdn_url"] is String) this.cdnUrl = json["cdn_url"];
  if (json["vimeo_api_url"] is String)
    this.vimeoApiUrl = json["vimeo_api_url"];
  if (json["request"] is Map)
    this.request =
        json["request"] == null ? null : Request.fromJson(json["request"]);
  if (json["player_url"] is String) this.playerUrl = json["player_url"];
  if (json["video"] is Map)
    this.video = json["video"] == null ? null : Video.fromJson(json["video"]);
  if (json["user"] is Map)
    this.user =
        json["user"] == null ? null : VimeoUser.fromJson(json["user"]);
  if (json["seo"] is Map)
    this.seo = json["seo"] == null ? null : Seo.fromJson(json["seo"]);
  if (json["embed"] is Map)
    this.embed = json["embed"] == null ? null : Embed.fromJson(json["embed"]);
  if (json["view"] is int) this.view = json["view"];
  if (json["vimeo_url"] is String) this.vimeoUrl = json["vimeo_url"];
}