VimeoUser.fromJson constructor

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

Implementation

VimeoUser.fromJson(Map<String, dynamic> json) {
  if (json["team_origin_user_id"] is int)
    this.teamOriginUserId = json["team_origin_user_id"];
  if (json["liked"] is int) this.liked = json["liked"];
  if (json["account_type"] is String) this.accountType = json["account_type"];
  this.vimeoApiClientToken = json["vimeo_api_client_token"];
  this.vimeoApiInteractionTokens = json["vimeo_api_interaction_tokens"];
  if (json["team_id"] is int) this.teamId = json["team_id"];
  if (json["watch_later"] is int) this.watchLater = json["watch_later"];
  if (json["owner"] is int) this.owner = json["owner"];
  if (json["id"] is int) this.id = json["id"];
  if (json["mod"] is int) this.mod = json["mod"];
  if (json["private_mode_enabled"] is int)
    this.privateModeEnabled = json["private_mode_enabled"];
  if (json["logged_in"] is int) this.loggedIn = json["logged_in"];
}