RiskPolicyOut class

Constructors

RiskPolicyOut({int? changes, int? disposed, List<RiskPolicyVersion> history = const [], int? retained, int? version, String? window})
Returns a new RiskPolicyOut instance.

Properties

changes ↔ int?
Changes is how many DISTINCT regimes may be adopted per Window. A restatement identical to the regime in force mints no version and is not counted against it.
getter/setter pair
disposed ↔ int?
Disposed is how many versions retention has taken. It is NOT a silence: a history bounded on disk must say what it no longer holds, because a decision citing a disposed version can no longer be reconstructed from this record.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
history ↔ List<RiskPolicyVersion>
History is the retained versions, newest first.
getter/setter pair
retained ↔ int?
Retained is how many versions this organisation's history holds at most, derived from the byte budget its rows are a multiple of.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
version ↔ int?
Version is the version in force — the one every score currently cites. Zero means no regime has ever been stated and the default posture, shadow, is in force.
getter/setter pair
window ↔ String?
Window is the period Changes is measured over.
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) → RiskPolicyOut?
Returns a new RiskPolicyOut instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<RiskPolicyOut>
mapFromJson(dynamic json) → Map<String, RiskPolicyOut>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<RiskPolicyOut>>

Constants

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