         UserDefaults.standard.setValue(false, forKey: "_UIConstraintBasedLayoutLogUnsatisfiable")
     }
     
+    public func set<T: BaseMappable>(object: T?, forKey key: String) {
+        set(object?.toJSONString(), forKey: key)
+    }
+    
+    public func object<T: BaseMappable>(forKey key: String) -> T? {
+        return string(forKey: key).flatMap { Mapper<T>().map(JSONString: $0) }
+    }
+    
 }
 
 public extension Bundle {

//

import Foundation

public extension IntegerLiteralType {
    

        for (key, value) in dict {
            updateValue(value, forKey: key)
        }
    }
    
}
