toJson method

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

Implementation

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