diff --git a/lib/models/time_slots_days.dart b/lib/models/time_slots_days.dart deleted file mode 100644 index 4f07011c..00000000 --- a/lib/models/time_slots_days.dart +++ /dev/null @@ -1,28 +0,0 @@ -import 'package:chabo/models/enums/day.dart'; -import 'package:enum_to_string/enum_to_string.dart'; -import 'package:equatable/equatable.dart'; - -class TimeSlotsDays extends Equatable { - final Map days; - - const TimeSlotsDays({required this.days}); - - Map toJson() { - return days.map((key, value) => - MapEntry(EnumToString.convertToString(key), value.toString())); - } - - factory TimeSlotsDays.fromJson(Map json) { - final days = json.map((key, value) => - MapEntry(EnumToString.fromString(Day.values, key)!, value == 'true')); - - return TimeSlotsDays(days: days); - } - - void setSelected(Day day, bool isSelected) { - days[day] = isSelected; - } - - @override - List get props => [days]; -}