toJson method
Implementation
@override
Map<String, dynamic> toJson() => <String, dynamic>{
'animation': animation.toJson(),
'caption': caption.toJson(),
'show_caption_above_media': showCaptionAboveMedia,
'has_spoiler': hasSpoiler,
'is_secret': isSecret,
'@type': constructor,
};