toJson method

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

Implementation

@override
Map<String, dynamic> toJson() => <String, dynamic>{
      'animation': animation?.toJson(),
      'caption': caption?.toJson(),
      'need_autoplay': needAutoplay,
      'has_spoiler': hasSpoiler,
      '@type': constructor,
    };