Event constructor
Event({})
Implementation
factory Event({
Editor? editor,
Aggregate? aggregate,
$fixnum.Int64? sequence,
$6.Timestamp? creationDate,
$4.Struct? payload,
EventType? type,
}) {
final $result = create();
if (editor != null) {
$result.editor = editor;
}
if (aggregate != null) {
$result.aggregate = aggregate;
}
if (sequence != null) {
$result.sequence = sequence;
}
if (creationDate != null) {
$result.creationDate = creationDate;
}
if (payload != null) {
$result.payload = payload;
}
if (type != null) {
$result.type = type;
}
return $result;
}