Response class
List of bare Type URIs the responding party supports. Carried in a Trust Task
document whose type is
https://trusttasks.org/spec/trust-task-discovery/0.3#response. A response-level
acceptanceWindow is the window the responder applies to every listed Type URI
whose entry carries none of its own. Where neither is present for an entry, the
discoverer has learnt nothing about that entry's window and MUST NOT read the
absence as the absence of a window.
Constructors
-
Response({required List<
Object?> supportedTypes, String? frameworkVersion, AcceptanceWindow? acceptanceWindow}) -
const
-
Response.fromJson(Map<
String, dynamic> json) -
Read this payload from a decoded JSON object.
factory
Properties
- acceptanceWindow → AcceptanceWindow?
-
final
- frameworkVersion → String?
-
MAJOR.MINOR.PATCH version of the Trust Tasks framework specification (SPEC.md) the
responder targets — three-part, as the framework has been versioned since 0.4.0
(SPEC.md §5.1.1), and exactly the value a Trust Task specification declares as its
target framework version. Lets a discoverer reason about compatibility (SPEC.md
§5.2) and select the envelope schema a responder's documents are validated against,
which is keyed by the full release: a PATCH is never substituted for another.
RECOMMENDED. Two-part in trust-task-discovery/0.1, which could not express a PATCH.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
supportedTypes
→ List<
Object?> -
Each entry's Type URI MUST match at least one of the request's patterns (if any
were supplied). Order is not significant. Duplicates by Type URI are not permitted,
regardless of whether the entry is in shorthand or expanded form.
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