                         
                         relationships[label] = relationship
                     }
-                } else if includeAttributes && !Self.excludedKeys.contains(label)  {
+                } else if includeAttributes && !excludedKeys.contains(label)  {
                     if let value = child.value as? Serializable {
                         attributes[label] = value.serialize()
                     } else {

        
        return includedRelationships.count > 0 ? includedRelationships : nil
    }
    
    private static var excludedKeys: [String] {
        return ["id", "links", "topLinks"]
    }
}

               entityLinks = linkedEntity.links where entityLinks.count > 0 {
            data["links"] = entityLinks.serialize()
        }
        
        let excludedKeys: Set<String> = ["id", "links", "topLinks"]
        
        for child in mirror.children {
            if let label = child.label {
