toProtocol

abstract fun toProtocol(): Event

Serialize this UI event into its protocol representation.