From 657302f309d3b75f052b0d89e2038586a78e2079 Mon Sep 17 00:00:00 2001 From: Valentin REVERSAT Date: Sun, 21 May 2023 17:24:57 +0200 Subject: [PATCH] fix(ci): remove unused file --- lib/models/time_slots_days.dart | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 lib/models/time_slots_days.dart 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]; -}