toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'queueDepth': queueDepth,
      'pendingCount': pendingCount,
      'executingCount': executingCount,
      'abandonedCount': abandonedCount,
      'succeededCount': succeededCount,
      'retryEnabled': retryEnabled,
      'executorState': executorState,
      if (oldestPendingAgeMs != null) 'oldestPendingAgeMs': oldestPendingAgeMs,
      if (lastRetryErrorCode != null)
        'lastRetryErrorCode': lastRetryErrorCode,
      if (lastRetryAt != null) 'lastRetryAt': lastRetryAt,
    };