mappable to nsuserdefault code example
Example: mappable to nsuserdefault
// User.swift
import ObjectMapper
class User: Mappable {
required init?(map: Map) {}
func mapping(map: Map) {
name <- map["name"]
uid <- map["uid"]
}
var name:String = ""
var uid:Int = 0
}