deserialize static method

TaskTimeoutException? deserialize(
  1. List data
)
override

Deserializes a List that was produced by serialize.

Implementation

static TaskTimeoutException? deserialize(List data) =>
    (data[_$type] == _$typeMarker)
        ? TaskTimeoutException(
            message: data[_$message],
            stackTrace: SquadronException.loadStackTrace(data[_$stackTrace]),
            workerId: data[_$workerId],
            command: data[_$command],
            duration: (data[_$duration] == null)
                ? null
                : Duration(microseconds: data[_$duration]))
        : null;