tristanhimmelman / AlamofireObjectMapper

An Alamofire extension which converts JSON response data into swift objects using ObjectMapper
MIT License
2.66k stars 474 forks source link

modify the property values and set to Model #214

Open santhoshs5 opened 7 years ago

santhoshs5 commented 7 years ago

I am using ObjectMapper and Realm

class User:Object, Mappable { dynamic var name: String? } func mapping(map: Map) { name <- map["Name"] }

ObjectMapper is converting ' is converting to some junk charater by default.

Please recommend me best approach to do removingPercentEncoding from my side

Now my question is i want to apply removingPercentEncoding to name before saving it model and Realm.

How can I do this?