serialize method
Serializes the exception, i.e. returns a list of items that can cross thread boundaries.
Implementation
@override
List serialize() => List.unmodifiable([
_$typeMarker,
message,
_stackTrace?.toString(),
_workerId,
_command,
duration?.inMicroseconds
]);