// 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(),
      memoryUsagePercent: (json['memoryUsagePercent'] as num?)?.toDouble(),
      diskUsagePercent: (json['diskUsagePercent'] as num?)?.toDouble(),
      networkUsageMbps: (json['networkUsageMbps'] as num?)?.toDouble(),
      activeConnections: (json['activeConnections'] as num?)?.toInt(),
      errorRate: (json['errorRate'] as num?)?.toDouble(),
      averageResponseTimeMs: (json['averageResponseTimeMs'] as num?)?.toInt(),
      uptime: (json['uptime'] as num?)?.toInt(),
      uptimeFormatted: json['uptimeFormatted'] as String?,
      totalLogs24h: (json['totalLogs24h'] as num?)?.toInt(),
      totalErrors24h: (json['totalErrors24h'] as num?)?.toInt(),
      totalWarnings24h: (json['totalWarnings24h'] as num?)?.toInt(),
      totalRequests24h: (json['totalRequests24h'] as num?)?.toInt(),
      timestamp: json['timestamp'] == null
          ? null
          : DateTime.parse(json['timestamp'] as String),
    );

Map<String, dynamic> _$SystemMetricsModelToJson(SystemMetricsModel instance) =>
    <String, dynamic>{
      'cpuUsagePercent': instance.cpuUsagePercent,
      'memoryUsagePercent': instance.memoryUsagePercent,
      'diskUsagePercent': instance.diskUsagePercent,
      'networkUsageMbps': instance.networkUsageMbps,
      'activeConnections': instance.activeConnections,
      'errorRate': instance.errorRate,
      'averageResponseTimeMs': instance.averageResponseTimeMs,
      'uptime': instance.uptime,
      'uptimeFormatted': instance.uptimeFormatted,
      'totalLogs24h': instance.totalLogs24h,
      'totalErrors24h': instance.totalErrors24h,
      'totalWarnings24h': instance.totalWarnings24h,
      'totalRequests24h': instance.totalRequests24h,
      'timestamp': instance.timestamp?.toIso8601String(),
    };
