WebSocketAction.fromJson constructor Null safety

WebSocketAction.fromJson(
  1. Map data
)

Implementation

factory WebSocketAction.fromJson(Map data) => WebSocketAction(
    id: data['id'].toString(),
    eventName: data['eventName'].toString(),
    data: data['data'],
    params: data['params'] as Map<String, dynamic>?);