Response class

Acknowledgement of the recorded decision, and whether the approval threshold is now met.

Constructors

Response({required ResponseStatus status, required DigestMultibase payloadDigest, String? actionId, int? approvals, int? needed, Ext? ext})
const
Response.fromJson(Map<String, dynamic> json)
Read this payload from a decoded JSON object.
factory

Properties

actionId → String?
Echoed when the decision carried one.
final
approvals → int?
Distinct approvals recorded so far.
final
ext → Map<String, dynamic>?
final
hashCode → int
The hash code for this object.
no setterinherited
needed → int?
Distinct approvals required. Present when status is pending.
final
payloadDigest → String
The digest this decision concerned, in the encoding the pending request carried it.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → ResponseStatus
granted = the threshold is met: the requester's re-submit will now execute, or — for a VTC action — the executor has executed (or is executing) the parked operation itself. pending = the approval was recorded but more are needed. denied = the request was aborted.
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() → String
A string representation of this object.
inherited

Operators

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