Response class
Success response to vta/memory/delete. Type https://trusttasks.org/spec/vta/memory/delete/0.2#response.
- Annotations
-
- @Deprecated('superseded by vta/memory/delete/0.3')
Constructors
- Response({required String contextId, required MemoryKey key, required bool existed, MemoryVersion? version, String? deletedAt, Ext? ext})
-
const
-
Response.fromJson(Map<
String, dynamic> json) -
Read this payload from a decoded JSON object.
factory
Properties
- contextId → String
-
Echoed from the request.
final
- deletedAt → String?
-
When the deletion was recorded. Absent on the same terms as
version.final - existed → bool
-
True when a live item was removed by this request. False when the key already held
a tombstone, or held nothing at all — both of which are successes, because the
caller's intent is satisfied either way.
final
- ext → Ext?
-
Ecosystem-defined extension members per SPEC.md §4.5.1.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- version → MemoryVersion?
-
The tombstone's version — the counter value this delete took, or the value the
existing tombstone already held when
existedis false. Absent only when the key held nothing and no tombstone was written.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