InputMessageVideo.fromJson constructor
Parses a InputMessageVideo from TDLib JSON.
Implementation
factory InputMessageVideo.fromJson(Map<String, dynamic> json) =>
InputMessageVideo(
video: _readObject(json['video'], InputVideo.fromJson),
caption: _readOptional(json['caption'], FormattedText.fromJson),
showCaptionAboveMedia: _readBool(json['show_caption_above_media']),
selfDestructType: _readOptional(
json['self_destruct_type'],
MessageSelfDestructType.fromJson,
),
hasSpoiler: _readBool(json['has_spoiler']),
);