InlineQueryResultCachedSticker.fromJson constructor

InlineQueryResultCachedSticker.fromJson(
  1. Map<String, dynamic> json
)

Constructs an InlineQueryResultCachedSticker object from a JSON map

Implementation

factory InlineQueryResultCachedSticker.fromJson(Map<String, dynamic> json) {
  return InlineQueryResultCachedSticker(
    stickerFileId: json['sticker_file_id'] as String,
    id: json['id'] as String,
    replyMarkup: json['reply_markup'] == null
        ? null
        : InlineKeyboardMarkup.fromJson(
            json['reply_markup'] as Map<String, dynamic>,
          ),
    inputMessageContent: json['input_message_content'] == null
        ? null
        : InputMessageContent.fromJson(
            json['input_message_content'] as Map<String, dynamic>,
          ),
  );
}