toJson method

  1. @override
Object toJson()

Implementation

@override
Object toJson() => {
  'timeout': ?timeout?.toJson(),
  if (restartJobOnWorkerRestart.isNotDefault)
    'restartJobOnWorkerRestart': restartJobOnWorkerRestart,
  if (strategy.isNotDefault) 'strategy': strategy.toJson(),
  if (disableRetries.isNotDefault) 'disableRetries': disableRetries,
  'maxWaitDuration': ?maxWaitDuration?.toJson(),
};