
import 'package:equatable/equatable.dart';

class Shift extends Equatable {
  final String openAt;
  final String closeAt;

  const Shift({required this.openAt, required this.closeAt});

  @override
  List<Object?> get props => [openAt, closeAt];
}

class WorkingHours extends Equatable {
  final String day;
  final List<Shift> shifts;

  const WorkingHours({required this.day, required this.shifts});

  bool get isOpen => shifts.isNotEmpty;

  @override
  List<Object?> get props => [day, shifts];
}