toJson method

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

Converts this object to TDLib JSON.

Implementation

@override
Map<String, dynamic> toJson() => {
  '@type': CONSTRUCTOR,
  'width': width,
  'height': height,
  'html': html,
  'public_data': publicData,
  'chat_data': chatData,
  'caption': caption?.toJson(),
  'show_caption_above_media': showCaptionAboveMedia,
  'allow_queries': allowQueries,
  'is_shared': isShared,
};