WebSocketMessage.json constructor
WebSocketMessage.json(})
Creates a JSON message.
Implementation
WebSocketMessage.json(
Map<String, dynamic> json, {
DateTime? timestamp,
String? id,
bool requiresAck = false,
}) : this(
data: json,
type: 'json',
timestamp: timestamp,
id: id,
requiresAck: requiresAck,
);