deserialize method Null safety

Data? deserialize(
  1. dynamic x
)

Deserializes data from a WebSocketEvent.

Implementation

Data? deserialize(x) {
  return deserializer != null ? deserializer!(x) : x as Data?;
}