// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'system_metrics_model.dart';

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

SystemMetricsModel _$SystemMetricsModelFromJson(
  Map<String, dynamic> json,
) => SystemMetricsModel(
  cpuUsagePercent: (json['cpuUsagePercent'] as num?)?.toDouble(),
  availableProcessors: (json['availableProcessors'] as num?)?.toInt(),
  systemLoadAverage: (json['systemLoadAverage'] as num?)?.toDouble(),
  totalMemoryBytes: (json['totalMemoryBytes'] as num?)?.toInt(),
  usedMemoryBytes: (json['usedMemoryBytes'] as num?)?.toInt(),
  freeMemoryBytes: (json['freeMemoryBytes'] as num?)?.toInt(),
  maxMemoryBytes: (json['maxMemoryBytes'] as num?)?.toInt(),
  memoryUsagePercent: (json['memoryUsagePercent'] as num?)?.toDouble(),
  totalMemoryFormatted: json['totalMemoryFormatted'] as String?,
  usedMemoryFormatted: json['usedMemoryFormatted'] as String?,
  freeMemoryFormatted: json['freeMemoryFormatted'] as String?,
  totalDiskBytes: (json['totalDiskBytes'] as num?)?.toInt(),
  usedDiskBytes: (json['usedDiskBytes'] as num?)?.toInt(),
  freeDiskBytes: (json['freeDiskBytes'] as num?)?.toInt(),
  diskUsagePercent: (json['diskUsagePercent'] as num?)?.toDouble(),
  totalDiskFormatted: json['totalDiskFormatted'] as String?,
  usedDiskFormatted: json['usedDiskFormatted'] as String?,
  freeDiskFormatted: json['freeDiskFormatted'] as String?,
  activeUsersCount: (json['activeUsersCount'] as num?)?.toInt(),
  totalUsersCount: (json['totalUsersCount'] as num?)?.toInt(),
  activeSessionsCount: (json['activeSessionsCount'] as num?)?.toInt(),
  failedLoginAttempts24h: (json['failedLoginAttempts24h'] as num?)?.toInt(),
  apiRequestsLastHour: (json['apiRequestsLastHour'] as num?)?.toInt(),
  apiRequestsToday: (json['apiRequestsToday'] as num?)?.toInt(),
  averageResponseTimeMs: (json['averageResponseTimeMs'] as num?)?.toDouble(),
  totalRequestsCount: (json['totalRequestsCount'] as num?)?.toInt(),
  dbConnectionPoolSize: (json['dbConnectionPoolSize'] as num?)?.toInt(),
  dbActiveConnections: (json['dbActiveConnections'] as num?)?.toInt(),
  dbIdleConnections: (json['dbIdleConnections'] as num?)?.toInt(),
  dbHealthy: json['dbHealthy'] as bool?,
  criticalErrorsCount: (json['criticalErrorsCount'] as num?)?.toInt(),
  warningsCount: (json['warningsCount'] as num?)?.toInt(),
  infoLogsCount: (json['infoLogsCount'] as num?)?.toInt(),
  debugLogsCount: (json['debugLogsCount'] as num?)?.toInt(),
  totalLogsCount: (json['totalLogsCount'] as num?)?.toInt(),
  networkBytesReceivedPerSec: (json['networkBytesReceivedPerSec'] as num?)
      ?.toDouble(),
  networkBytesSentPerSec: (json['networkBytesSentPerSec'] as num?)?.toDouble(),
  networkInFormatted: json['networkInFormatted'] as String?,
  networkOutFormatted: json['networkOutFormatted'] as String?,
  systemStatus: json['systemStatus'] as String?,
  uptimeMillis: (json['uptimeMillis'] as num?)?.toInt(),
  uptimeFormatted: json['uptimeFormatted'] as String?,
  startTime: json['startTime'] as String?,
  currentTime: json['currentTime'] as String?,
  javaVersion: json['javaVersion'] as String?,
  quarkusVersion: json['quarkusVersion'] as String?,
  applicationVersion: json['applicationVersion'] as String?,
  lastBackup: json['lastBackup'] as String?,
  nextScheduledMaintenance: json['nextScheduledMaintenance'] as String?,
  lastMaintenance: json['lastMaintenance'] as String?,
  apiBaseUrl: json['apiBaseUrl'] as String?,
  authServerUrl: json['authServerUrl'] as String?,
  cdnUrl: json['cdnUrl'] as String?,
  totalCacheSizeBytes: (json['totalCacheSizeBytes'] as num?)?.toInt(),
  totalCacheSizeFormatted: json['totalCacheSizeFormatted'] as String?,
  totalCacheEntries: (json['totalCacheEntries'] as num?)?.toInt(),
);

Map<String, dynamic> _$SystemMetricsModelToJson(SystemMetricsModel instance) =>
    <String, dynamic>{
      'cpuUsagePercent': instance.cpuUsagePercent,
      'availableProcessors': instance.availableProcessors,
      'systemLoadAverage': instance.systemLoadAverage,
      'totalMemoryBytes': instance.totalMemoryBytes,
      'usedMemoryBytes': instance.usedMemoryBytes,
      'freeMemoryBytes': instance.freeMemoryBytes,
      'maxMemoryBytes': instance.maxMemoryBytes,
      'memoryUsagePercent': instance.memoryUsagePercent,
      'totalMemoryFormatted': instance.totalMemoryFormatted,
      'usedMemoryFormatted': instance.usedMemoryFormatted,
      'freeMemoryFormatted': instance.freeMemoryFormatted,
      'totalDiskBytes': instance.totalDiskBytes,
      'usedDiskBytes': instance.usedDiskBytes,
      'freeDiskBytes': instance.freeDiskBytes,
      'diskUsagePercent': instance.diskUsagePercent,
      'totalDiskFormatted': instance.totalDiskFormatted,
      'usedDiskFormatted': instance.usedDiskFormatted,
      'freeDiskFormatted': instance.freeDiskFormatted,
      'activeUsersCount': instance.activeUsersCount,
      'totalUsersCount': instance.totalUsersCount,
      'activeSessionsCount': instance.activeSessionsCount,
      'failedLoginAttempts24h': instance.failedLoginAttempts24h,
      'apiRequestsLastHour': instance.apiRequestsLastHour,
      'apiRequestsToday': instance.apiRequestsToday,
      'averageResponseTimeMs': instance.averageResponseTimeMs,
      'totalRequestsCount': instance.totalRequestsCount,
      'dbConnectionPoolSize': instance.dbConnectionPoolSize,
      'dbActiveConnections': instance.dbActiveConnections,
      'dbIdleConnections': instance.dbIdleConnections,
      'dbHealthy': instance.dbHealthy,
      'criticalErrorsCount': instance.criticalErrorsCount,
      'warningsCount': instance.warningsCount,
      'infoLogsCount': instance.infoLogsCount,
      'debugLogsCount': instance.debugLogsCount,
      'totalLogsCount': instance.totalLogsCount,
      'networkBytesReceivedPerSec': instance.networkBytesReceivedPerSec,
      'networkBytesSentPerSec': instance.networkBytesSentPerSec,
      'networkInFormatted': instance.networkInFormatted,
      'networkOutFormatted': instance.networkOutFormatted,
      'systemStatus': instance.systemStatus,
      'uptimeMillis': instance.uptimeMillis,
      'uptimeFormatted': instance.uptimeFormatted,
      'startTime': instance.startTime,
      'currentTime': instance.currentTime,
      'javaVersion': instance.javaVersion,
      'quarkusVersion': instance.quarkusVersion,
      'applicationVersion': instance.applicationVersion,
      'lastBackup': instance.lastBackup,
      'nextScheduledMaintenance': instance.nextScheduledMaintenance,
      'lastMaintenance': instance.lastMaintenance,
      'apiBaseUrl': instance.apiBaseUrl,
      'authServerUrl': instance.authServerUrl,
      'cdnUrl': instance.cdnUrl,
      'totalCacheSizeBytes': instance.totalCacheSizeBytes,
      'totalCacheSizeFormatted': instance.totalCacheSizeFormatted,
      'totalCacheEntries': instance.totalCacheEntries,
    };
