RiskEvent class

Constructors

RiskEvent({String? at, String? device, String? id, String? kind, int? nano, String? peer, String? subject})
Returns a new RiskEvent instance.

Properties

at ↔ String?
At is when it happened, RFC 3339. Empty means now. It must sit inside the thirty-day window the aggregates keep and no more than two minutes ahead of this plane's clock; anything outside that is REFUSED rather than quietly accepted, because a future timestamp moves the aggregates' leading edge and leaves every later event for that subject reading as though it never happened. History older than the window is folded in from your own event surface, not through this endpoint.
getter/setter pair
device ↔ String?
Device is the device fingerprint, if any. It is the axis that surfaces several nominally unrelated subjects acting as one.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID is the caller's own stable identifier for the event. It selects the below-the-line review sample by hash, so a counter would make the sample steerable — use the id the event already has.
getter/setter pair
kind ↔ String?
Kind is whose behaviour this is: person, session or account. It namespaces the subject, so a person and an account that share an identifier stay two subjects.
getter/setter pair
nano ↔ int?
Nano is the value moved, in nano-USD. Omit it for an event that moves no money: the value features then read BLIND rather than being told the amount was zero, and the difference is reported on the model state.
getter/setter pair
peer ↔ String?
Peer is the counterparty, if any. It is an aggregation axis of its own — "unfamiliar" is a fact about a relationship and not about either party.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
subject ↔ String?
Subject is the identifier on that kind.
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) → RiskEvent?
Returns a new RiskEvent instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<RiskEvent>
mapFromJson(dynamic json) → Map<String, RiskEvent>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<RiskEvent>>

Constants

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