And so on for the other properties.
Properties become easier to enumerate. You can do away with the switch entirely. Assuming you're doing so within the context of an object that holds properties,
your snippet reduces to something like: