AuditEvent constructor
AuditEvent({})
Implementation
AuditEvent({
String? id,
required this.type,
this.stateKey,
this.oldValue,
this.newValue,
this.userId,
this.userEmail,
DateTime? timestamp,
this.metadata,
this.previousHash,
this.hash,
}) : id = id ?? _generateId(),
timestamp = timestamp ?? DateTime.now();