// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'backup_config_model.dart';

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

BackupConfigModel _$BackupConfigModelFromJson(Map<String, dynamic> json) =>
    BackupConfigModel(
      autoBackupEnabled: json['autoBackupEnabled'] as bool?,
      frequency: json['frequency'] as String?,
      retention: json['retention'] as String?,
      retentionDays: (json['retentionDays'] as num?)?.toInt(),
      backupTime: json['backupTime'] as String?,
      includeDatabase: json['includeDatabase'] as bool?,
      includeFiles: json['includeFiles'] as bool?,
      includeConfiguration: json['includeConfiguration'] as bool?,
      lastBackup: json['lastBackup'] == null
          ? null
          : DateTime.parse(json['lastBackup'] as String),
      nextScheduledBackup: json['nextScheduledBackup'] == null
          ? null
          : DateTime.parse(json['nextScheduledBackup'] as String),
      totalBackups: (json['totalBackups'] as num?)?.toInt(),
      totalSizeBytes: (json['totalSizeBytes'] as num?)?.toInt(),
      totalSizeFormatted: json['totalSizeFormatted'] as String?,
    );

Map<String, dynamic> _$BackupConfigModelToJson(BackupConfigModel instance) =>
    <String, dynamic>{
      'autoBackupEnabled': instance.autoBackupEnabled,
      'frequency': instance.frequency,
      'retention': instance.retention,
      'retentionDays': instance.retentionDays,
      'backupTime': instance.backupTime,
      'includeDatabase': instance.includeDatabase,
      'includeFiles': instance.includeFiles,
      'includeConfiguration': instance.includeConfiguration,
      'lastBackup': instance.lastBackup?.toIso8601String(),
      'nextScheduledBackup': instance.nextScheduledBackup?.toIso8601String(),
      'totalBackups': instance.totalBackups,
      'totalSizeBytes': instance.totalSizeBytes,
      'totalSizeFormatted': instance.totalSizeFormatted,
    };
