         
         dict["accountId"] = accountId
         dict["quantity"] = quantity
-        dict["assortment"] = serialize(entity: assortment, metaOnly: true)
+        
+        if type(of: serialize(entity: assortment, metaOnly: false)) != type(of: NSNull()) {
+            dict["assortment"] = serialize(entity: assortment, metaOnly: false)
+        }
        
         return dict
     }

            dict["uom"] = serialize(entity: uom, metaOnly: false)
        }

        
        dict["code"] = code ?? ""
        dict["externalCode"] = externalCode ?? ""

        
        dict["accountId"] = accountId
        dict["shared"] = shared
        dict["article"] = article ?? ""
        dict["code"] = code ?? ""
        dict["description"] = description ?? ""
        
        if let buyPrice = buyPrice?.dictionary() {
            dict["buyPrice"] = buyPrice
        }
        
        if type(of: serialize(entity: productFolder, metaOnly: false)) != type(of: NSNull()) {
            dict["productFolder"] = serialize(entity: productFolder, metaOnly: false)
        }
        
        if type(of: serialize(entity: supplier, metaOnly: false)) != type(of: NSNull()) {
            dict["supplier"] = serialize(entity: supplier, metaOnly: false)
        }
        
        if let image = image?.dictionary() {
            dict["image"] = image
        }
        
        dict["salePrices"] = salePrices.map { $0.dictionary() }
        
        return dict
