Files
unionflow-mobile-apps/lib/features/logs/data/models/system_alert_model.g.dart
dahoud d094d6db9c Initial commit: unionflow-mobile-apps
Application Flutter complète (sans build artifacts).

Signed-off-by: lions dev Team
2026-03-15 16:30:08 +00:00

44 lines
1.7 KiB
Dart

// 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,
};