transformEvent method Null safety

WebSocketEvent<Data> transformEvent(
  1. WebSocketEvent event
)

Deserializes the contents of an event.

Implementation

WebSocketEvent<Data> transformEvent(WebSocketEvent event) {
  return WebSocketEvent(
      eventName: event.eventName, data: deserialize(event.data));
}