InputMessageVideo.fromJson constructor
Parse from a json
Implementation
factory InputMessageVideo.fromJson(Map<String, dynamic> json) => InputMessageVideo(
video: InputFile.fromJson(json['video']),
thumbnail: json['thumbnail'] == null ? null : InputThumbnail.fromJson(json['thumbnail']),
addedStickerFileIds: List<int>.from((json['added_sticker_file_ids'] ?? []).map((item) => item).toList()),
duration: json['duration'],
width: json['width'],
height: json['height'],
supportsStreaming: json['supports_streaming'],
caption: json['caption'] == null ? null : FormattedText.fromJson(json['caption']),
ttl: json['ttl'],
);