ReferenceSet class

Constructors

ReferenceSet({String? age, String? asOf, int? keys, String? kind, String? match, String? maxAge, int? overrides, String? refusal, String? set_, List<ReferenceSource> sources = const [], bool? stale, String? version, String? what})
Returns a new ReferenceSet instance.

Properties

age ↔ String?
Age is how long ago that was.
getter/setter pair
asOf ↔ String?
AsOf is when the OLDEST contributing publisher was current, RFC 3339. The oldest and not the newest: a set is exactly as fresh as its weakest source.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
keys ↔ int?
Keys is how many members the baseline carries.
getter/setter pair
kind ↔ String?
Kind is how the baseline comes to exist: fetch (downloaded from a publisher), local (computed here), attest (held by the component that screens against it, freshness reported), or gap (declared and NOT held, because the source needs a licence we do not have).
getter/setter pair
match ↔ String?
Match is how a key is tested: exact, domain, net, digits, pattern or range.
getter/setter pair
maxAge ↔ String?
MaxAge is how old this set may be before it is stale.
getter/setter pair
overrides ↔ int?
Overrides is how many entries YOUR org has laid over this baseline.
getter/setter pair
refusal ↔ String?
Refusal names why the set cannot be relied on, when it cannot: never loaded, held elsewhere, or a licence we do not hold. Non-empty means a lookup against this set will not answer, rather than answering clean.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
set_ ↔ String?
Set is the name this set is addressed by.
getter/setter pair
sources ↔ List<ReferenceSource>
Sources is each contributing publisher, its licence and its own freshness.
getter/setter pair
stale ↔ bool?
Stale is whether it is past that bound. A stale set still answers and says so, because yesterday's list beats none.
getter/setter pair
version ↔ String?
Version is the exact baseline consulted — every contributing publisher and its content digest. A decision records this and an auditor resolves it back.
getter/setter pair
what ↔ String?
What the set holds, in one sentence.
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) → ReferenceSet?
Returns a new ReferenceSet instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<ReferenceSet>
mapFromJson(dynamic json) → Map<String, ReferenceSet>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<ReferenceSet>>

Constants

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