of
Creates a new instance of the event class by passed event instance.
If an instance of Event is passed to this method, enclosing event message will be un-wrapped to determine the class of the event.
If an instance of Any is passed, it will be unpacked, and the class of the wrapped message will be used.
Return
new instance
Parameters
event Or Message
an event message, or Any, Event