// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'modules_settings.dart';

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

ModulesSettings _$ModulesSettingsFromJson(Map<String, dynamic> json) =>
    ModulesSettings(
      moduleOrder: (json['moduleOrder'] as List<dynamic>)
          .map((e) => $enumDecode(_$ModulesEnumMap, e))
          .toList(),
      hiddenModules: (json['hiddenModules'] as List<dynamic>)
          .map((e) => $enumDecode(_$ModulesEnumMap, e))
          .toList(),
      autoFillBottomBar: json['autoFillBottomBar'] as bool? ?? true,
      fixedBottomBarSlots: (json['fixedBottomBarSlots'] as num?)?.toInt() ?? 3,
    );

Map<String, dynamic> _$ModulesSettingsToJson(
  ModulesSettings instance,
) => <String, dynamic>{
  'moduleOrder': instance.moduleOrder.map((e) => _$ModulesEnumMap[e]!).toList(),
  'hiddenModules': instance.hiddenModules
      .map((e) => _$ModulesEnumMap[e]!)
      .toList(),
  'autoFillBottomBar': instance.autoFillBottomBar,
  'fixedBottomBarSlots': instance.fixedBottomBarSlots,
};

const _$ModulesEnumMap = {
  Modules.timetable: 'timetable',
  Modules.ticker: 'ticker',
  Modules.talk: 'talk',
  Modules.files: 'files',
  Modules.marianumMessage: 'marianumMessage',
  Modules.roomPlan: 'roomPlan',
  Modules.gradeAveragesCalculator: 'gradeAveragesCalculator',
  Modules.holidays: 'holidays',
  Modules.marianumDates: 'marianumDates',
  Modules.absenceReport: 'absenceReport',
};
