Evidence class

Evidence represents the original, immutable input data.

This is the base layer (L0) of the fact graph architecture. Evidence is never modified after creation - only fragments are extracted from it.

Constructors

Evidence({required String evidenceId, required String workspaceId, required EvidenceSourceType sourceType, required String content, required String contentHash, String? mimeType, required SourceInfo source, String? sourceRef, String? contentRef, DateTime? timestamp, String? author, required DateTime createdAt, required DateTime ingestedAt, EvidenceStatus status = EvidenceStatus.pending, List<String> fragmentIds = const [], Map<String, dynamic> metadata = const {}})
const
Evidence.fromJson(Map<String, dynamic> json)
factory

Properties

author → String?
Creator/author of this evidence. Reference: Design Section 2.2 - provenance tracking.
final
content → String
Original content (could be base64 for images, text, etc.).
final
contentHash → String
Content hash for integrity verification.
final
contentRef → String?
Internal storage reference (blob storage key). Reference: Design Section 2.2 - content storage.
final
createdAt → DateTime
When this evidence was created in the system. Reference: Design Section 2.2 - audit trail.
final
evidenceId → String
Unique evidence identifier.
final
fragmentIds → List<String>
Extracted fragments from this evidence.
final
hashCode → int
The hash code for this object.
no setteroverride
ingestedAt → DateTime
When this evidence was ingested.
final
metadata → Map<String, dynamic>
Additional metadata.
final
mimeType → String?
MIME type of the content.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source → SourceInfo
Source metadata (where it came from).
final
sourceRef → String?
External reference (URL, file path, etc.). Reference: Design Section 2.2 - source tracking.
final
sourceType → EvidenceSourceType
Type of the source (image, text, receipt, messenger, etc.).
final
status → EvidenceStatus
Processing status.
final
timestamp → DateTime?
When the original content was captured/created. Reference: Design Section 2.2 - temporal tracking.
final
workspaceId → String
Workspace identifier for multi-tenant isolation.
final

Methods

copyWith({String? evidenceId, String? workspaceId, EvidenceSourceType? sourceType, String? content, String? contentHash, String? mimeType, SourceInfo? source, String? sourceRef, String? contentRef, DateTime? timestamp, String? author, DateTime? createdAt, DateTime? ingestedAt, EvidenceStatus? status, List<String>? fragmentIds, Map<String, dynamic>? metadata}) → Evidence
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override