toJson method

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

Converts an InlineQueryResultArticle object to a JSON map

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    'type': type.toString(),
    'id': id,
    'title': title,
    'input_message_content': inputMessageContent.toJson(),
    'reply_markup': replyMarkup?.toJson(),
    'url': url,
    'hide_url': hideUrl,
    'description': description,
    'thumbnail_url': thumbnailUrl,
    'thumbnail_width': thumbnailWidth,
    'thumbnail_height': thumbnailHeight,
  }..removeWhere(_nullFilter);
}