toJson method

Map<String, dynamic> toJson()

Returns the job data as a JSON-encoded string.

Implementation

Map<String, dynamic> toJson() {
  return {
    'displayName': displayName,
    'maxRetries': maxRetries,
    'retryDelay': retryDelay.inSeconds,
    'shouldRetry': shouldRetry,
    'timeout': timeout?.inSeconds,
    'queue': queue,
  };
}