toJson method

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

Implementation

@override
Map<String, dynamic> toJson() => <String, dynamic>{
      'chat_id': chatId,
      'topic_id': topicId?.toJson(),
      'receiver_user_id': receiverUserId,
      'callback_query_id': callbackQueryId.toString(),
      'replace_callback_query_message': replaceCallbackQueryMessage,
      'reply_to': replyTo?.toJson(),
      'protect_content': protectContent,
      'sending_id': sendingId,
      'only_preview': onlyPreview,
      'reply_markup': replyMarkup?.toJson(),
      'input_message_content': inputMessageContent.toJson(),
      '@type': constructor,
    };