toJson method

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

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    "@type": CONSTRUCTOR,
    "id": this.id,
    "contact": this.contact == null ? null : this.contact.toJson(),
    "thumbnail_url": this.thumbnailUrl,
    "thumbnail_width": this.thumbnailWidth,
    "thumbnail_height": this.thumbnailHeight,
    "reply_markup":
        this.replyMarkup == null ? null : this.replyMarkup.toJson(),
    "input_message_content": this.inputMessageContent == null
        ? null
        : this.inputMessageContent.toJson(),
  };
}