Added object method for unwrapping JSON enum to object, thanks @k06a