Map<String, dynamic> toJson() { return { 'maxRetries': maxRetries, 'retryDelay': retryDelay.toString(), }; }