import 'package:freezed_annotation/freezed_annotation.dart'; import '../../state/app/modules/app_modules.dart'; part 'modules_settings.g.dart'; @JsonSerializable() class ModulesSettings { List moduleOrder; List hiddenModules; bool autoFillBottomBar; int fixedBottomBarSlots; ModulesSettings({ required this.moduleOrder, required this.hiddenModules, this.autoFillBottomBar = true, this.fixedBottomBarSlots = 3, }); factory ModulesSettings.fromJson(Map json) => _$ModulesSettingsFromJson(json); Map toJson() => _$ModulesSettingsToJson(this); }