toJson method

Map toJson()

Creates a json from the object

Implementation

Map toJson() {
  return {
    'type': type,
    'id': id,
    'sticker_file_id': stickerFileId,
    'reply_markup': replyMarkup,
    'input_message_content': inputMessageContent,
  }..removeWhere((_, v) => v == null);
}