toMap method
Converts to a map (used for secure storage).
Implementation
Map<String, String> toMap() {
final map = <String, String>{};
if (geminiKey != null) map['gemini_key'] = geminiKey!;
if (openaiKey != null) map['openai_key'] = openaiKey!;
if (claudeKey != null) map['claude_key'] = claudeKey!;
if (grokKey != null) map['grok_key'] = grokKey!;
if (deepseekKey != null) map['deepseek_key'] = deepseekKey!;
if (geminiModel != null) map['gemini_model'] = geminiModel!;
if (openaiModel != null) map['openai_model'] = openaiModel!;
if (claudeModel != null) map['claude_model'] = claudeModel!;
if (grokModel != null) map['grok_model'] = grokModel!;
if (deepseekModel != null) map['deepseek_model'] = deepseekModel!;
if (preferredProvider != null) {
map['preferred_provider'] = preferredProvider!;
}
if (planningProvider != null) map['planning_provider'] = planningProvider!;
if (codingProvider != null) map['coding_provider'] = codingProvider!;
if (executionMode != null) map['execution_mode'] = executionMode!;
return map;
}