InputVideo.fromJson constructor
Parses a InputVideo from TDLib JSON.
Implementation
factory InputVideo.fromJson(Map<String, dynamic> json) => InputVideo(
video: _readObject(json['video'], InputFile.fromJson),
thumbnail: _readOptional(json['thumbnail'], InputThumbnail.fromJson),
cover: _readOptional(json['cover'], InputFile.fromJson),
startTimestamp: _readInt(json['start_timestamp']),
addedStickerFileIds: _readList<int>(
json['added_sticker_file_ids'],
_readInt,
),
duration: _readInt(json['duration']),
width: _readInt(json['width']),
height: _readInt(json['height']),
supportsStreaming: _readBool(json['supports_streaming']),
);