Notification class

The members of one notification, as notifications/notify carries them and as a recipient's agent records them. The originator is the issuer of the notifications/notify document and the addressee its recipient; neither is repeated here, because the originator's proof covers both.

Constructors

Notification({required NotificationId notificationId, required int revision, required Kind kind, required Subject subject, required Did audience, required Status status, required bool relayable, String? validFrom, String? validUntil})
const
Notification.fromJson(Map<String, dynamic> json)
Read this payload from a decoded JSON object.
factory

Properties

audience → Did
The DID whose holders or members the thing concerns — for an election under a credential roll, the DID the roll names (roll.memberOf); otherwise the community's own. It says whom the thing is for, not that the recipient is one of them: a recipient may be the audience itself, or a party the audience relayed the notification to.
final
hashCode → int
The hash code for this object.
no setterinherited
kind → Did
final
notificationId → Did
final
relayable → bool
Whether the addressee may relay this notification to the parties it stands for (notifications/relay). The originator states it explicitly; an addressee MUST NOT relay a notification whose relayable is false, or whose kind may not be relayed (VTI-NTF-041).
final
revision → int
The revision of this notification. A recipient replaces the record it holds with a higher revision and leaves it unchanged for an equal or lower one (VTI-NTF-022). The first revision is 1.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → Status
final
subject → Subject
final
validFrom → String?
When the thing can first be acted on — for an election, when voting opens. Absent: it can be acted on now.
final
validUntil → String?
When the thing can no longer be acted on, and the notification lapses — for an election, when voting closes. A recipient discards a notification received after it (VTI-NTF-032). Absent: the kind's definition says when it lapses.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serialize to a JSON-encodable map, omitting absent members.
toString() → Did
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited