I have a simple case class as below:
case class SmartMeterData( dataInterval: SmartMeterDataInterval = HalfHourInterval(), powerUnit: PowerUnit = Po