toMap method
Converts to a JSON-serializable map.
Implementation
JsonMap toMap() => {
'maxRetries': maxRetries,
'retryDelayMs': retryDelay.inMilliseconds,
'retryBackoff': retryBackoff,
'maxRetryDelayMs': maxRetryDelay.inMilliseconds,
'autoRestart': autoRestart,
'autoRetryTypes': autoRetryTypes.map((e) => e.name).toList(),
'ignoreTypes': ignoreTypes.map((e) => e.name).toList(),
'logErrors': logErrors,
};