Typescript Convert String Into Enum In Java