toJson method

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

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    "@type": CONSTRUCTOR,
    "chat_id": this.chatId,
    "message_thread_id": this.messageThreadId,
    "reply_to_message_id": this.replyToMessageId,
    "options": this.options == null ? null : this.options.toJson(),
    "query_id": this.queryId,
    "result_id": this.resultId,
    "hide_via_bot": this.hideViaBot,
    "@extra": this.extra,
  };
}