toJson method

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

Implementation

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