toJSON fromJSON instances for TimeOfDay