Hello I am using Object Mapper with Alamofire in Swift and I am trying to map enum raw value to real Enum.
Here is my enum and also the code I am trying to use in function mapping. Can you please help me what to pass as argument to EnumTransform or how to modify the code? I know I can read the value as string and the use LevelType(rawValue: stringValue).
Thanks in advance.
enum LevelType : String {
case NEW = "NEW"
case UPDATE = "UPDATE"
}
func mapping(map: Map) {
typeEnum <- (map[“type”], EnumTransformable(???) )
}