Response class

The success response to a messaging/ping request. Carried in a Trust Task document whose type is https://trusttasks.org/spec/messaging/ping/0.1#response.

Constructors

Response({required String serverTime, required ResponseStatus status, List<String>? protocols, String? nonce, Ext? ext})
const
Response.fromJson(Map<String, dynamic> json)
Read this payload from a decoded JSON object.
factory

Properties

ext → Ext?
Ecosystem-defined extension members per SPEC.md §4.5.1.
final
hashCode → int
The hash code for this object.
no setterinherited
nonce → String?
Echoed verbatim from the request when one was supplied.
final
protocols → List<String>?
The transport protocols the mediator currently serves (e.g. didcomm, tsp). Open set; requesters ignore unrecognized tokens. MAY be omitted in a reduced response to an unauthenticated requester.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
serverTime → String
The mediator's current time (RFC 3339). Advisory; not a trusted time source.
final
status → ResponseStatus
Coarse health. ok = able to accept and route messages; degraded = reachable but operating with reduced function. A mediator that cannot serve at all returns the framework unavailable error instead of a response.
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