BridgeMessage constructor

BridgeMessage({
  1. String? id,
  2. required BridgeMessageType type,
  3. Map<String, dynamic> payload = const {},
  4. DateTime? timestamp,
  5. String? correlationId,
})

Implementation

BridgeMessage({
  String? id,
  required this.type,
  this.payload = const {},
  DateTime? timestamp,
  this.correlationId,
}) : id = id ?? _uuid.v4(),
     timestamp = timestamp ?? DateTime.now();