decodeToEvent

open fun JsonElement.decodeToEvent(): Event

Converts a JsonElement to an event specific plugin.