getType method
Returns the corresponding holiday type from all holidays with type type
Implementation
@override
HolidayType getType(String type) {
return _holidaysTypes.firstWhere(
(holidayType) => holidayType.getHolidayType() == type,
orElse: () => throw HolidayTypeNotFoundException(
"HolidayType with type $type was not found"),
);
}