Video.fromJson constructor
Parse from a json
Implementation
factory Video.fromJson(Map<String, dynamic> json) => Video(
duration: json['duration'],
width: json['width'],
height: json['height'],
fileName: json['file_name'],
mimeType: json['mime_type'],
hasStickers: json['has_stickers'],
supportsStreaming: json['supports_streaming'],
minithumbnail: json['minithumbnail'] == null ? null : Minithumbnail.fromJson(json['minithumbnail']),
thumbnail: json['thumbnail'] == null ? null : Thumbnail.fromJson(json['thumbnail']),
video: File.fromJson(json['video']),
);