How to assign rawValue of enum to variable with ObjectMapper?
<p>Hello I am using <a href="https://github.com/Hearst-DD/ObjectMapper">Object Mapper</a> with Alamofire in Swift and I am trying to map enum raw value to real Enum. </p>

<p>Here is my enum and also the code I am trying to use in function <em>mapping</em>. 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). </p>

<p>Thanks in advance.</p>

<pre><code>enum LevelType : String {
    case NEW = "NEW"
    case UPDATE = "UPDATE"
}

func mapping(map: Map) {
    typeEnum &lt;- (map[“type”], EnumTransformable(???) )
}
</code></pre>