toJson method

  1. @override
Map<String, dynamic> toJson()
override

Converts this object to TDLib JSON.

Implementation

@override
Map<String, dynamic> toJson() => {
  '@type': CONSTRUCTOR,
  'video': video.toJson(),
  'alternative_videos': [for (final e in alternativeVideos) e.toJson()],
  'storyboards': [for (final e in storyboards) e.toJson()],
  'cover': cover?.toJson(),
  'start_timestamp': startTimestamp,
  'caption': caption.toJson(),
  'show_caption_above_media': showCaptionAboveMedia,
  'has_spoiler': hasSpoiler,
  'is_secret': isSecret,
};