toJson method

Map<String, dynamic> toJson()

Implementation

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