serialize method Null safety

dynamic serialize(
  1. WebSocketAction action
)

Serializes an action to be sent over a WebSocket.

Implementation

dynamic serialize(WebSocketAction action) => json.encode(action);