toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  if (expectedUpdatedAt != null)
    'expectedUpdatedAt': expectedUpdatedAt!.toIso8601String(),
  'ai': {
    'provider': _enumName(aiProvider),
    'geminiApiKey': geminiApiKey,
    'clearGeminiApiKey': clearGeminiApiKey,
    'openaiApiKey': openaiApiKey,
    'clearOpenaiApiKey': clearOpenaiApiKey,
    'claudeApiKey': claudeApiKey,
    'clearClaudeApiKey': clearClaudeApiKey,
    'groqApiKey': groqApiKey,
    'clearGroqApiKey': clearGroqApiKey,
    'cerebrasApiKey': cerebrasApiKey,
    'clearCerebrasApiKey': clearCerebrasApiKey,
  },
  'smtp': {
    'host': smtpHost,
    'port': smtpPort,
    'username': smtpUsername,
    'password': smtpPassword,
    'clearPassword': clearSmtpPassword,
    'fromEmail': smtpFromEmail,
    'fromName': smtpFromName,
    'secureMode': _enumName(smtpSecureMode),
  },
  'turnstile': {
    'siteKey': turnstileSiteKey,
    'clearSiteKey': clearTurnstileSiteKey,
    'secretKey': turnstileSecretKey,
    'clearSecretKey': clearTurnstileSecretKey,
  },
};