// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'system_config_model.dart';

// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************

SystemConfigModel _$SystemConfigModelFromJson(Map<String, dynamic> json) =>
    SystemConfigModel(
      applicationName: json['applicationName'] as String?,
      timezone: json['timezone'] as String?,
      defaultLanguage: json['defaultLanguage'] as String?,
      maintenanceMode: json['maintenanceMode'] as bool?,
      version: json['version'] as String?,
      lastUpdated: json['lastUpdated'] == null
          ? null
          : DateTime.parse(json['lastUpdated'] as String),
      networkTimeout: (json['networkTimeout'] as num?)?.toInt(),
      maxRetries: (json['maxRetries'] as num?)?.toInt(),
      connectionPoolSize: (json['connectionPoolSize'] as num?)?.toInt(),
      twoFactorAuthEnabled: json['twoFactorAuthEnabled'] as bool?,
      sessionTimeoutMinutes: (json['sessionTimeoutMinutes'] as num?)?.toInt(),
      auditLoggingEnabled: json['auditLoggingEnabled'] as bool?,
      metricsCollectionEnabled: json['metricsCollectionEnabled'] as bool?,
      metricsIntervalSeconds: (json['metricsIntervalSeconds'] as num?)?.toInt(),
      performanceOptimizationEnabled:
          json['performanceOptimizationEnabled'] as bool?,
      autoBackupEnabled: json['autoBackupEnabled'] as bool?,
      backupFrequency: json['backupFrequency'] as String?,
      backupRetentionDays: (json['backupRetentionDays'] as num?)?.toInt(),
      lastBackup: json['lastBackup'] == null
          ? null
          : DateTime.parse(json['lastBackup'] as String),
      logLevel: json['logLevel'] as String?,
      logRetentionDays: (json['logRetentionDays'] as num?)?.toInt(),
      detailedLoggingEnabled: json['detailedLoggingEnabled'] as bool?,
      logCompressionEnabled: json['logCompressionEnabled'] as bool?,
      realTimeMonitoringEnabled: json['realTimeMonitoringEnabled'] as bool?,
      monitoringIntervalSeconds: (json['monitoringIntervalSeconds'] as num?)
          ?.toInt(),
      emailAlertsEnabled: json['emailAlertsEnabled'] as bool?,
      pushAlertsEnabled: json['pushAlertsEnabled'] as bool?,
      cpuHighAlertEnabled: json['cpuHighAlertEnabled'] as bool?,
      cpuThresholdPercent: (json['cpuThresholdPercent'] as num?)?.toInt(),
      memoryLowAlertEnabled: json['memoryLowAlertEnabled'] as bool?,
      memoryThresholdPercent: (json['memoryThresholdPercent'] as num?)?.toInt(),
      criticalErrorAlertEnabled: json['criticalErrorAlertEnabled'] as bool?,
      connectionFailureAlertEnabled:
          json['connectionFailureAlertEnabled'] as bool?,
      connectionFailureThreshold: (json['connectionFailureThreshold'] as num?)
          ?.toInt(),
      systemStatus: json['systemStatus'] as String?,
      uptime: (json['uptime'] as num?)?.toInt(),
    );

Map<String, dynamic> _$SystemConfigModelToJson(SystemConfigModel instance) =>
    <String, dynamic>{
      'applicationName': instance.applicationName,
      'timezone': instance.timezone,
      'defaultLanguage': instance.defaultLanguage,
      'maintenanceMode': instance.maintenanceMode,
      'version': instance.version,
      'lastUpdated': instance.lastUpdated?.toIso8601String(),
      'networkTimeout': instance.networkTimeout,
      'maxRetries': instance.maxRetries,
      'connectionPoolSize': instance.connectionPoolSize,
      'twoFactorAuthEnabled': instance.twoFactorAuthEnabled,
      'sessionTimeoutMinutes': instance.sessionTimeoutMinutes,
      'auditLoggingEnabled': instance.auditLoggingEnabled,
      'metricsCollectionEnabled': instance.metricsCollectionEnabled,
      'metricsIntervalSeconds': instance.metricsIntervalSeconds,
      'performanceOptimizationEnabled': instance.performanceOptimizationEnabled,
      'autoBackupEnabled': instance.autoBackupEnabled,
      'backupFrequency': instance.backupFrequency,
      'backupRetentionDays': instance.backupRetentionDays,
      'lastBackup': instance.lastBackup?.toIso8601String(),
      'logLevel': instance.logLevel,
      'logRetentionDays': instance.logRetentionDays,
      'detailedLoggingEnabled': instance.detailedLoggingEnabled,
      'logCompressionEnabled': instance.logCompressionEnabled,
      'realTimeMonitoringEnabled': instance.realTimeMonitoringEnabled,
      'monitoringIntervalSeconds': instance.monitoringIntervalSeconds,
      'emailAlertsEnabled': instance.emailAlertsEnabled,
      'pushAlertsEnabled': instance.pushAlertsEnabled,
      'cpuHighAlertEnabled': instance.cpuHighAlertEnabled,
      'cpuThresholdPercent': instance.cpuThresholdPercent,
      'memoryLowAlertEnabled': instance.memoryLowAlertEnabled,
      'memoryThresholdPercent': instance.memoryThresholdPercent,
      'criticalErrorAlertEnabled': instance.criticalErrorAlertEnabled,
      'connectionFailureAlertEnabled': instance.connectionFailureAlertEnabled,
      'connectionFailureThreshold': instance.connectionFailureThreshold,
      'systemStatus': instance.systemStatus,
      'uptime': instance.uptime,
    };
