copyWith method
Implementation
WebSocketMessage copyWith({
dynamic data,
DateTime? timestamp,
String? type,
Map<String, dynamic>? metadata,
}) {
return WebSocketMessage(
data: data ?? this.data,
timestamp: timestamp ?? this.timestamp,
type: type ?? this.type,
metadata: metadata ?? this.metadata,
);
}