// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'system_log_model.dart';

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

SystemLogModel _$SystemLogModelFromJson(Map<String, dynamic> json) =>
    SystemLogModel(
      id: json['id'] as String?,
      level: json['level'] as String?,
      source: json['source'] as String?,
      message: json['message'] as String?,
      details: json['details'] as String?,
      timestamp: json['timestamp'] == null
          ? null
          : DateTime.parse(json['timestamp'] as String),
      username: json['username'] as String?,
      ipAddress: json['ipAddress'] as String?,
      requestId: json['requestId'] as String?,
      stackTrace: json['stackTrace'] as String?,
    );

Map<String, dynamic> _$SystemLogModelToJson(SystemLogModel instance) =>
    <String, dynamic>{
      'id': instance.id,
      'level': instance.level,
      'source': instance.source,
      'message': instance.message,
      'details': instance.details,
      'timestamp': instance.timestamp?.toIso8601String(),
      'username': instance.username,
      'ipAddress': instance.ipAddress,
      'requestId': instance.requestId,
      'stackTrace': instance.stackTrace,
    };
