             
             convertedValues[key] = value
         }
-        */
         
         // convert relationships
         for (key, relationship) in self.relationships {
             
+            let convertedValue: Value
+            
             if let jsonValue = JSONObject[key] {
-                
-                let convertedValue: Value
                 
                 switch relationship.type {
                     

                    
                    convertedValue = .Relationship(.ToMany(resourceIDs))
                }
                
                convertedValues[key] = convertedValue
            }
            
            else { convertedValues[key] = .Null }
        }

        return convertedValues

        
        var convertedValues = ValuesObject()
        
        // convert attributes
        for (key, attribute) in self.attributes {
            
