PollMediaVideo.fromJson constructor
Parses a PollMediaVideo from TDLib JSON.
Implementation
factory PollMediaVideo.fromJson(Map<String, dynamic> json) => PollMediaVideo(
video: _readObject(json['video'], Video.fromJson),
alternativeVideos: _readList<AlternativeVideo>(
json['alternative_videos'],
(e) => _readObject(e, AlternativeVideo.fromJson),
),
storyboards: _readList<VideoStoryboard>(
json['storyboards'],
(e) => _readObject(e, VideoStoryboard.fromJson),
),
cover: _readOptional(json['cover'], Photo.fromJson),
startTimestamp: _readInt(json['start_timestamp']),
);