RiskModelValue class

Constructors

RiskModelValue({String? address, String? at, int? learned, int? sequence, String? shape, String? warmed})
Returns a new RiskModelValue instance.

Properties

address ↔ String?
Address names this value by its own content: the model's shape, the geometry seed, its position in the window, its threshold, its masses as IEEE-754 bits and the fold watermark behind them. Nothing else — no clock, no counter and deliberately NOT the organisation, so an identical model has one name and a name is never an authority. Holding another organisation's address resolves nothing.
getter/setter pair
at ↔ String?
At is when it was published, RFC 3339, on the server clock. You do not supply it: a record whose date the audited party chose is not a record.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
learned ↔ int?
Learned is how many events are behind the masses.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sequence ↔ int?
Sequence is this value's place in YOUR organisation's own history, from 1 and contiguous until retention disposes of the oldest.
getter/setter pair
shape ↔ String?
Shape NAMES the model space the masses are only meaningful against, as <family>:<digest> — the KIND of model, and that family's own digest over the feature inventory in order and the detector's geometry parameters. Compare it with the shape on your model state (GET /v1/risk/state): equal means adopting this value restores masses into the space already running, and different means adopting it REPLANTS the model into the space this value describes. That is what makes a searched shape installable. A DIFFERENT FAMILY IS NOT ADOPTABLE AT ALL, and that is the one difference the family term makes here: a different geometry in the same family is a replant, and a different family is a refusal naming both — its masses do not describe your model in any space.
getter/setter pair
warmed ↔ String?
Warmed is how far your own event surface had been folded in when this value was published, RFC 3339. It is part of the address because two models with identical masses reached by different routes disagree about what is left to fold, and one of them will re-teach history the other will not.
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) → RiskModelValue?
Returns a new RiskModelValue instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<RiskModelValue>
mapFromJson(dynamic json) → Map<String, RiskModelValue>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<RiskModelValue>>

Constants

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