CausalEvent constructor
CausalEvent({})
Implementation
CausalEvent({
String? id,
this.parentId,
required this.type,
required this.description,
DateTime? timestamp,
Map<String, dynamic>? metadata,
this.duration,
}) : id = id ?? const Uuid().v4(),
timestamp = timestamp ?? DateTime.now(),
metadata = metadata ?? const {};