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,
  'widget_id': widgetId.toString(),
  'caption': caption.toJson(),
  'show_caption_above_media': showCaptionAboveMedia,
  'is_copy': isCopy,
  'can_send_queries': canSendQueries,
  'can_send_background_queries': canSendBackgroundQueries,
};