// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'backup_model.dart';

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

BackupModel _$BackupModelFromJson(Map<String, dynamic> json) => BackupModel(
  id: json['id'] as String?,
  name: json['name'] as String?,
  description: json['description'] as String?,
  type: json['type'] as String?,
  sizeBytes: (json['sizeBytes'] as num?)?.toInt(),
  sizeFormatted: json['sizeFormatted'] as String?,
  status: json['status'] as String?,
  createdAt: json['createdAt'] == null
      ? null
      : DateTime.parse(json['createdAt'] as String),
  completedAt: json['completedAt'] == null
      ? null
      : DateTime.parse(json['completedAt'] as String),
  createdBy: json['createdBy'] as String?,
  includesDatabase: json['includesDatabase'] as bool?,
  includesFiles: json['includesFiles'] as bool?,
  includesConfiguration: json['includesConfiguration'] as bool?,
  filePath: json['filePath'] as String?,
  errorMessage: json['errorMessage'] as String?,
);

Map<String, dynamic> _$BackupModelToJson(BackupModel instance) =>
    <String, dynamic>{
      'id': instance.id,
      'name': instance.name,
      'description': instance.description,
      'type': instance.type,
      'sizeBytes': instance.sizeBytes,
      'sizeFormatted': instance.sizeFormatted,
      'status': instance.status,
      'createdAt': instance.createdAt?.toIso8601String(),
      'completedAt': instance.completedAt?.toIso8601String(),
      'createdBy': instance.createdBy,
      'includesDatabase': instance.includesDatabase,
      'includesFiles': instance.includesFiles,
      'includesConfiguration': instance.includesConfiguration,
      'filePath': instance.filePath,
      'errorMessage': instance.errorMessage,
    };
