EventEnvelop class

Envelope containing an event and its metadata.

Wraps events produced by entities and services with tracking information that correlates them with the commands that triggered them.

Constructors

EventEnvelop({required String actorId, required String eventId, required String commandId, required String type, required Map<String, dynamic> event})
Creates an event envelope with metadata.
EventEnvelop.fromJson(Map<String, dynamic> json)
factory

Properties

actorId String
ID of the entity or service that produced this event.
final
commandId String
ID of the command that triggered this event.
final
event Map<String, dynamic>
JSON representation of the event payload.
final
eventId String
Unique identifier for this event instance.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
Event type name for deserialization (e.g., 'UserCreated', 'PaymentProcessed').
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

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