PayloadInResponseTo class
Identifies the Trust Task document this error reports on. RECOMMENDED on every error response, and REQUIRED in practice for any error a third party may later be asked to rely on: threadId correlates the exchange only for a party that saw the request, so without this an error retained as evidence names neither the task it terminated nor the instance.
Constructors
- PayloadInResponseTo({required String typeUri, String? id})
-
const
-
PayloadInResponseTo.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
- id → String?
-
The id of the specific document being reported on (SPEC §4.3). Globally unique and
never reused, so it names one instance where threadId names an exchange. Omit only
where echoing it would disclose more than the error already does.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- typeUri → String
-
The Type URI of the document being reported on, including any #request or #response
fragment it carried. This is what tells a consumer which specification's semantics
apply to an extended code, and which specification declared the requirement that
was breached.
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