AgentAuditEntry.fromMap constructor

AgentAuditEntry.fromMap(
  1. Map<Object?, Object?> map
)

Implementation

factory AgentAuditEntry.fromMap(Map<Object?, Object?> map) => AgentAuditEntry(
  opId: map['opId']! as int,
  op: map['op']! as String,
  targetId: map['targetId'] as String?,
  locator: map['locator'] as String?,
  entry: AgentAuditEntryPoint.parse(map['entry']! as String),
  scopeId: map['scopeId']! as String,
  allowed: map['allowed']! as bool,
  denyReason: map['denyReason'] as String?,
  gate: map['gate'] as int?,
  undoRef: map['undoRef']! as int,
  appliedAt: DateTime.parse(map['appliedAt']! as String),
  toolName: map['toolName']! as String,
  programId: map['programId'] as String?,
  programSha256: map['programSha256'] as String?,
  outcome: AgentAuditOutcome.parse(map['outcome']! as String),
  mutationCount: map['mutationCount'] as int?,
  logBytes: map['logBytes'] as int?,
);