WireFact class

Constructors

WireFact({String? at, String? by, num? confidence, String? entity, String? evidence, String? id, String? knowable, bool? names, String? relation, String? seen, String? source_, String? value})
Returns a new WireFact instance.

Properties

at ↔ String?
At is when the thing was so, RFC 3339, as the asserter gave it.
getter/setter pair
by ↔ String?
By is the identity that filed it — owner or owner/user — stamped from the validated principal at the write, never from the body.
getter/setter pair
confidence ↔ num?
Confidence in 0,1 as the asserter gave it; absent is 0. It breaks a tie between two assertions equally knowable and decides nothing else.
getter/setter pair
entity ↔ String?
Entity is the thing described, in the organization's own namespace.
getter/setter pair
evidence ↔ String?
Evidence points at the record the claim came from. Absent when the asserter gave none.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID is the assertion's content address, minted by the server from what was asserted. Two callers who assert the identical thing land on one ID and one row; changing any asserted field makes a different ID and a second row.
getter/setter pair
knowable ↔ String?
Knowable is the first instant this plane could have answered with the assertion, RFC 3339: the later of Seen and the server's clock at the write. Derived and never supplied, which is what stops history filed today from being backdated into a past read.
getter/setter pair
names ↔ bool?
Names true means the assertion is an edge and Value is an entity. A walk reads only these.
getter/setter pair
relation ↔ String?
Relation is what was asserted of it.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
seen ↔ String?
Seen is when the asserter says it became knowable, RFC 3339. Provenance only — Knowable is what an as-of read is bounded by.
getter/setter pair
source_ ↔ String?
Source names who asserted, as the caller gave it. This plane ranks no source above another, so it never outweighs a later Knowable.
getter/setter pair
value ↔ String?
Value is what the relation points at: another entity's key when Names is true, otherwise a scalar.
getter/setter pair

Methods

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

Static Methods

fromJson(dynamic value) → WireFact?
Returns a new WireFact instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<WireFact>
mapFromJson(dynamic json) → Map<String, WireFact>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<WireFact>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.