     */
     public static func encode<T>(key: String) -> T? -> JSON? {
         return {
-            object in
+            model in
             
-            if let object = object {
-                
-                return [key : object as! AnyObject]
+            if let model = model {
+                return [key : model as! AnyObject]
             }
             
             return nil

        return {
            enumValue in
            
            if let e = enumValue {
                return [key : e.rawValue as! AnyObject]
            }
            
            return nil

    */
    public static func encode<T: Encodable>(key: String) -> T? -> JSON? {
        return {
            model in
            
            if let model = model {
                return [key : model.toJSON()]
            }
            
            return nil
