Response class

The success response: the key record as it now stands. Returning the whole record rather than an acknowledgement lets a producer confirm the state it asked for without a second round trip. Wrapped in key to match the rest of the family (keys/show, keys/create). Carried in a Trust Task document whose type is https://trusttasks.org/spec/keys/set-exportability/0.1#response.

Constructors

Response({required KeyRecord key})
const
Response.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
key → KeyRecord
The record the custodian now holds. Never null — a request naming a key the custodian does not hold is keys:notFound, not a successful answer with no record. This differs from keys/show, where 'no such key' is a legitimate success.
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() → String
A string representation of this object.
inherited

Operators

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