// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'dev_tools_settings.dart';

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

DevToolsSettings _$DevToolsSettingsFromJson(
  Map<String, dynamic> json,
) => DevToolsSettings(
  showPerformanceOverlay: json['showPerformanceOverlay'] as bool,
  checkerboardOffscreenLayers: json['checkerboardOffscreenLayers'] as bool,
  checkerboardRasterCacheImages: json['checkerboardRasterCacheImages'] as bool,
  marianumConnectEndpoint:
      $enumDecodeNullable(
        _$MarianumConnectEndpointEnumMap,
        json['marianumConnectEndpoint'],
      ) ??
      MarianumConnectEndpoint.live,
  marianumConnectCustomUrl: json['marianumConnectCustomUrl'] as String? ?? '',
  emergencyNoticeUrl: json['emergencyNoticeUrl'] as String? ?? '',
);

Map<String, dynamic> _$DevToolsSettingsToJson(DevToolsSettings instance) =>
    <String, dynamic>{
      'showPerformanceOverlay': instance.showPerformanceOverlay,
      'checkerboardOffscreenLayers': instance.checkerboardOffscreenLayers,
      'checkerboardRasterCacheImages': instance.checkerboardRasterCacheImages,
      'marianumConnectEndpoint':
          _$MarianumConnectEndpointEnumMap[instance.marianumConnectEndpoint]!,
      'marianumConnectCustomUrl': instance.marianumConnectCustomUrl,
      'emergencyNoticeUrl': instance.emergencyNoticeUrl,
    };

const _$MarianumConnectEndpointEnumMap = {
  MarianumConnectEndpoint.live: 'live',
  MarianumConnectEndpoint.beta: 'beta',
  MarianumConnectEndpoint.custom: 'custom',
};
