RiskValue class

Constructors

RiskValue({num? baseline, bool? blind, String? feature, num? observed, String? unit, num? x})
Returns a new RiskValue instance.

Properties

baseline ↔ num?
Baseline is what Observed was measured against: this organisation's own history for this subject.
getter/setter pair
blind ↔ bool?
Blind marks a coordinate that could not be computed and took its neutral value. A model silently reading neutral for a dimension it never has data for is indistinguishable from one reading a genuine absence of risk.
getter/setter pair
feature ↔ String?
Feature is the dimension.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
observed ↔ num?
Observed is the raw number X was computed from, quoted so the coordinate reads back as a sentence rather than a bare ratio.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
unit ↔ String?
Unit is how to read Observed.
getter/setter pair
x ↔ num?
X is the coordinate in the model space, always dimensionless.
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) → RiskValue?
Returns a new RiskValue instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<RiskValue>
mapFromJson(dynamic json) → Map<String, RiskValue>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<RiskValue>>

Constants

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