toJson method
Implementation
@override
Map<String, dynamic> toJson() => <String, dynamic>{
'video': video?.toJson(),
'alternative_videos': alternativeVideos
.map((item) => item.toJson())
.toList(),
'storyboards': storyboards.map((item) => item.toJson()).toList(),
'cover': cover?.toJson(),
'start_timestamp': startTimestamp,
'caption': caption?.toJson(),
'show_caption_above_media': showCaptionAboveMedia,
'has_spoiler': hasSpoiler,
'is_secret': isSecret,
'@type': constructor,
};