any way to write this a bit simpler and without the hacky null checks? I essentially need a switched...
s
any way to write this a bit simpler and without the hacky null checks? I essentially need a switched constructor.