How to assign rawValue of enum to variable with ObjectMapper?
You don’t have to pass an argument at all. All you have to do is to specify enum type as generic argument and ObjectMapper will take care for all enum initialization procedures. typeEnum <- (map[“type”],EnumTransform<LevelType>())