I have an algebraic data type that I want to use as a parameter for a case class which looks like this:
sealed abstract class DayOfWeek(val id: String) objec