toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  if (this.rating != null) data["rating"] = this.rating?.toJson();
  if (this.version != null) data["version"] = this.version?.toJson();
  data["height"] = this.height;
  data["duration"] = this.duration;
  // if (this.thumbs != null) data["thumbs"] = this.thumbs?.toJson();
  if (this.owner != null) data["owner"] = this.owner?.toJson();
  data["id"] = this.id;
  data["embed_code"] = this.embedCode;
  data["title"] = this.title;
  data["share_url"] = this.shareUrl;
  data["width"] = this.width;
  data["embed_permission"] = this.embedPermission;
  data["fps"] = this.fps;
  data["spatial"] = this.spatial;
  data["live_event"] = this.liveEvent;
  data["allow_hd"] = this.allowHd;
  data["hd"] = this.hd;
  data["lang"] = this.lang;
  data["default_to_hd"] = this.defaultToHd;
  data["url"] = this.url;
  data["privacy"] = this.privacy;
  data["unlisted_hash"] = this.unlistedHash;
  return data;
}