ReferenceAnswer class

Constructors

ReferenceAnswer({String? age, String? asOf, String? from, bool? hit, String? key, String? matched, String? refusal, num? score, String? set_, bool? stale, Map<String, String> value = const {}, String? verdict, String? version})
Returns a new ReferenceAnswer instance.

Properties

age ↔ String?
Age is how old that is, as a duration.
getter/setter pair
asOf ↔ String?
AsOf is when the oldest contributing publisher was current, RFC 3339.
getter/setter pair
from ↔ String?
From is override or baseline — which plane answered.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
hit ↔ bool?
Hit is whether the key is a member. It is meaningful ONLY when Refusal is empty: false with a refusal means the set could not be consulted, which is not the same as the key being clean.
getter/setter pair
key ↔ String?
Key is the key as asked.
getter/setter pair
matched ↔ String?
Matched is the member that covered the key, which for a domain or a network is the enclosing entry rather than the key itself.
getter/setter pair
refusal ↔ String?
Refusal is why the set could not be consulted, when it could not: never loaded, held elsewhere, or a source we hold no licence for. Non-empty means Hit must not be read as an answer.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
score ↔ num?
Score is the published risk weight where the source expresses one.
getter/setter pair
set_ ↔ String?
Set is the set consulted.
getter/setter pair
stale ↔ bool?
Stale is whether the set is past its freshness bound. A stale set still answers — yesterday's list beats none — and this is how a decision knows it leaned on one.
getter/setter pair
value ↔ Map<String, String>
Value is what the publisher says about the member — class, operator, scheme, region.
getter/setter pair
verdict ↔ String?
Verdict is the tenant's own allow or deny, present only for an override. The baseline never carries one: it states facts and leaves the decision to the caller's policy.
getter/setter pair
version ↔ String?
Version is the exact baseline version consulted, composed of each contributing publisher and its content digest. It is what makes a decision reproducible: an auditor takes this string and knows precisely what was consulted.
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) → ReferenceAnswer?
Returns a new ReferenceAnswer instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<ReferenceAnswer>
mapFromJson(dynamic json) → Map<String, ReferenceAnswer>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<ReferenceAnswer>>

Constants

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