EventLogDto class sealed

Base type for every event-log entry. Use the fromJson factory or pattern match on the concrete subtypes (ChangeEventLogDto, ErrorEventLogDto, RegisterEventLogDto, DeregisterEventLogDto).

Implementers

Constructors

EventLogDto.fromEventLog(BaseEventLog log)
Builds the appropriate EventLogDto subtype from an internal BaseEventLog.
factory
EventLogDto.fromJson(Map<String, dynamic> json)
Parses an EventLogDto from JSON, dispatching on the type field. Throws FormatException when type is unknown.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
Stable identifier for this event-log entry.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
streamId String
Identifier of the stream the event belongs to.
final
timestamp String
ISO-8601 timestamp of when the event occurred.
final

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.
toString() String
A string representation of this object.
inherited

Operators

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