Subject class

Where the thing is and how to open it. Only these three members: what the thing contains is shown by its holder, to a reader it admits, when the thing is opened with openWith.

Constructors

Subject({required Did heldBy, required String id, required String openWith})
const
Subject.fromJson(Map<String, dynamic> json)
Read this payload from a decoded JSON object.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
heldBy → Did
The DID of the party holding the thing — for an election, the community. The party a recipient sends openWith to.
final
id → Did
The thing's identifier at heldBy, in the form the openWith task takes it — for an election, its electionId.
final
openWith → Did
The Type URI of the Trust Task by which a recipient opens the thing at heldBy — for an election, https://trusttasks.org/spec/vtc/elections/show/0.6. A recipient opens it only at its principal's choice (VTI-NTF-053), and only by a version of that task it and heldBy both serve.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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