toJson method

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

Converts an InlineQueryResultCachedSticker object to a JSON map

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    'type': type.value,
    'id': id,
    'sticker_file_id': stickerFileId,
    'reply_markup': replyMarkup?.toJson(),
    'input_message_content': inputMessageContent?.toJson(),
  }..removeWhere(_nullFilter);
}