mirrored_repositories/MinecraftCubeDesktop/packages/cube_api/lib/src/data/installer
// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'installer.dart';

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

Installer _$InstallerFromJson(Map<String, dynamic> json) => Installer(
      json['name'] as String,
      json['description'] as String,
      $enumDecode(_$JarTypeEnumMap, json['type']),
      json['serverPath'] as String,
      mapZipPath: json['mapZipPath'] as String?,
      modelSettings: (json['modelSettings'] as List<dynamic>?)
              ?.map((e) => ModelSetting.fromJson(e as Map<String, dynamic>))
              .toList() ??
          const [],
      modelPack: json['modelPack'] == null
          ? null
          : ModelPack.fromJson(json['modelPack'] as Map<String, dynamic>),
    );

Map<String, dynamic> _$InstallerToJson(Installer instance) => <String, dynamic>{
      'name': instance.name,
      'description': instance.description,
      'type': _$JarTypeEnumMap[instance.type],
      'serverPath': instance.serverPath,
      'modelSettings': instance.modelSettings,
      'modelPack': instance.modelPack,
      'mapZipPath': instance.mapZipPath,
    };

const _$JarTypeEnumMap = {
  JarType.vanilla: 'vanilla',
  JarType.forgeInstaller: 'forgeInstaller',
  JarType.forge: 'forge',
  JarType.unknown: 'unknown',
};
