RetryQueueStatus.fromJson constructor
RetryQueueStatus.fromJson(
- Map<String, dynamic> json
)
Implementation
factory RetryQueueStatus.fromJson(Map<String, dynamic> json) =>
RetryQueueStatus(
queueDepth: (json['queueDepth'] as num?)?.toInt() ?? 0,
pendingCount: (json['pendingCount'] as num?)?.toInt() ?? 0,
executingCount: (json['executingCount'] as num?)?.toInt() ?? 0,
abandonedCount: (json['abandonedCount'] as num?)?.toInt() ?? 0,
succeededCount: (json['succeededCount'] as num?)?.toInt() ?? 0,
retryEnabled: (json['retryEnabled'] as bool?) ?? false,
executorState: (json['executorState'] as String?) ?? 'idle',
oldestPendingAgeMs: (json['oldestPendingAgeMs'] as num?)?.toInt(),
lastRetryErrorCode: json['lastRetryErrorCode'] as String?,
lastRetryAt: json['lastRetryAt'] as String?,
);