// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'system_alert_model.dart';

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

SystemAlertModel _$SystemAlertModelFromJson(Map<String, dynamic> json) =>
    SystemAlertModel(
      id: json['id'] as String?,
      level: json['level'] as String?,
      title: json['title'] as String?,
      message: json['message'] as String?,
      timestamp: json['timestamp'] == null
          ? null
          : DateTime.parse(json['timestamp'] as String),
      acknowledged: json['acknowledged'] as bool?,
      acknowledgedBy: json['acknowledgedBy'] as String?,
      acknowledgedAt: json['acknowledgedAt'] == null
          ? null
          : DateTime.parse(json['acknowledgedAt'] as String),
      source: json['source'] as String?,
      alertType: json['alertType'] as String?,
      currentValue: (json['currentValue'] as num?)?.toDouble(),
      thresholdValue: (json['thresholdValue'] as num?)?.toDouble(),
    );

Map<String, dynamic> _$SystemAlertModelToJson(SystemAlertModel instance) =>
    <String, dynamic>{
      'id': instance.id,
      'level': instance.level,
      'title': instance.title,
      'message': instance.message,
      'timestamp': instance.timestamp?.toIso8601String(),
      'acknowledged': instance.acknowledged,
      'acknowledgedBy': instance.acknowledgedBy,
      'acknowledgedAt': instance.acknowledgedAt?.toIso8601String(),
      'source': instance.source,
      'alertType': instance.alertType,
      'currentValue': instance.currentValue,
      'thresholdValue': instance.thresholdValue,
    };
