A2aMailEnvelope class final

One fabric-mail envelope over the A2A wire.

Constructors

A2aMailEnvelope({required String id, required String from, required String to, required String text, required String sentAt, int hops = 0})
const

Properties

from → String
The sender's reply address: <mailbox>@<machine> when the sender knows its own machine name, the bare mailbox otherwise.
final
hashCode → int
The hash code for this object.
no setterinherited
hops → int
Remaining relay budget, carried verbatim.
final
id → String
The fabric message id (kept stable across the boundary so at-least-once redelivery can be deduped by id).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sentAt → String
ISO 8601 send timestamp (UTC).
final
text → String
The message body.
final
to → String
The recipient mailbox on the receiving machine: a session display name, an absolute mailbox id, or a name/main form.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toMetadata() → Map<String, dynamic>
The metadata map to attach to an A2A message/send.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

fromMetadata(Map<String, dynamic>? metadata) → A2aMailEnvelope?
Tolerant decode from message metadata: null unless the marker is present and the required fields are non-empty strings.