ChangeEventLogDto class final

Event-log entry recording a value emission (subject.add(...)).

Inheritance
Annotations
  • @JsonSerializable.new()

Constructors

ChangeEventLogDto({required String id, required String timestamp, required String streamId, required String? newValue, required String? oldValue})
Creates a change event-log entry.
ChangeEventLogDto.fromEventLog(ChangeEventLog log)
Builds a ChangeEventLogDto from an internal ChangeEventLog.
factory
ChangeEventLogDto.fromJson(Map<String, dynamic> json)
Deserialises a ChangeEventLogDto from JSON.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
Stable identifier for this event-log entry.
finalinherited
newValue String?
JSON-encoded form of the newly emitted value.
final
oldValue String?
JSON-encoded form of the previously emitted value, or null if this was the first emission.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
streamId String
Identifier of the stream the event belongs to.
finalinherited
timestamp String
ISO-8601 timestamp of when the event occurred.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serialises this DTO to JSON. Subclasses tag the output with a type discriminator field so fromJson can route to the right factory.
override
toString() String
A string representation of this object.
inherited

Operators

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