I know that an enum value can be deserialised from either a string or an integer value but not both. I want to write some code which handles an enum
enum