toJson method
Implementation
Map<String, dynamic> toJson() => {
if (turnLimit != null) 'turnLimit': turnLimit,
if (timeoutMs != null) 'timeoutMs': timeoutMs,
if (maxRetries != null) 'maxRetries': maxRetries,
if (parallelTools != null) 'parallelTools': parallelTools,
if (options.isNotEmpty) 'options': options,
};