Success constructor
Success({
- ProducedEvents? producedEvents,
- ProducedCommands? producedCommands,
- Event? rejection,
Implementation
factory Success({
ProducedEvents? producedEvents,
ProducedCommands? producedCommands,
$46.Event? rejection,
}) {
final _result = create();
if (producedEvents != null) {
_result.producedEvents = producedEvents;
}
if (producedCommands != null) {
_result.producedCommands = producedCommands;
}
if (rejection != null) {
_result.rejection = rejection;
}
return _result;
}