GraphFact class

Constructors

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

Properties

at ↔ String?
At is when the thing was so, RFC 3339. Required, and refused when it sits more than five minutes ahead of the server clock — an assertion dated further out would never mature and would skew every read until it did.
getter/setter pair
confidence ↔ num?
Confidence in 0,1. A tie-breaker within the order, never a substitute for it. Absent is 0, the weakest an assertion can be.
getter/setter pair
entity ↔ String?
Entity is the thing being described, in the organization's own namespace. It is not created: an entity exists because something was asserted about it. Required, 512 bytes at most.
getter/setter pair
evidence ↔ String?
Evidence points at the record this claim came from, 512 bytes at most. An assertion without one is admitted and carries no defence.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
names ↔ bool?
Names says the value is an entity. A walk reads only the edges, so this is a declaration and never a guess about the value's shape.
getter/setter pair
relation ↔ String?
Relation is what is being asserted — depends, owner, same, title. It is open: this plane holds no vocabulary of its own. Required, 128 bytes at most.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
seen ↔ String?
Seen is when this assertion became knowable, RFC 3339. Defaults to At and may not precede it. It is provenance and it decides nothing: the instant every read uses is derived as the later of Seen and the server's own clock.
getter/setter pair
source_ ↔ String?
Source names who asserted. Required, because an assertion nobody is named for cannot be weighed against one that is. Open text: this plane ranks no source above another.
getter/setter pair
value ↔ String?
Value is what the relation points at. When Names is true it is another entity's key and the assertion is an EDGE; otherwise it is a scalar and the assertion is a property. 2048 bytes at most, or 512 when it names an entity.
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) → GraphFact?
Returns a new GraphFact instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<GraphFact>
mapFromJson(dynamic json) → Map<String, GraphFact>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<GraphFact>>

Constants

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