Response class
Synchronous ack from the VTA: a prompt was routed (accepted) or the request was refused. The actual decision arrives out-of-band as a consent/decision.
Constructors
- Response({required ResponseStatus status, String? requestId, String? reason, Ext? ext})
-
const
-
Response.fromJson(Map<
String, dynamic> json) -
Read this payload from a decoded JSON object.
factory
Properties
- ext → Ext?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- reason → String?
-
Required when status is
refused.final - requestId → String?
-
The VTA's id for the pending consent (set when accepted), for correlation and
polling.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → ResponseStatus
-
accepted= a pending consent was minted and an approval prompt routed.refused= not actionable;reasonMUST be set.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