toMap

fun toMap(event: Event): Map<String, Any>

Returns the payload as a status map, or an empty map if the payload is not a map.