toJson method
Convert model to TDLib JSON format
Implementation
@override
Map<String, dynamic> toJson() {
return {
"@type": defaultObjectId,
"video": video.toJson(),
"thumbnail": thumbnail?.toJson(),
"added_sticker_file_ids": addedStickerFileIds.map((i) => i).toList(),
"duration": duration,
"width": width,
"height": height,
"supports_streaming": supportsStreaming,
"caption": caption?.toJson(),
"show_caption_above_media": showCaptionAboveMedia,
"self_destruct_type": selfDestructType?.toJson(),
"has_spoiler": hasSpoiler,
};
}