toMap method
Implementation
Map<String, dynamic> toMap() {
return {
'maxRetryDelay': maxRetryDelay,
'minRetryDelay': minRetryDelay,
'backoffFactor': backoffFactor,
'backoffJitter': backoffJitter,
'maxAttempts': maxAttempts,
'maxItems': maxItems,
'batch':
batch?.toMap(), // Convert the batch object to a map if it's not null
'timerScaleFactor': timerScaleFactor,
};
}