         dict["filename"] = filename
         dict["size"] = size
         dict["miniatureUrl"] = miniatureUrl.absoluteString
-        dict["tinyUrl"] = tinyUrl?.absoluteString ?? NSNull()
+        dict["tinyUrl"] = tinyUrl?.absoluteString ?? ""
         
         return dict
     }

    public func dictionary() -> Dictionary<String, Any> {
        var dict = [String: Any]()
        
        dict["priceType"] = priceType ?? NSNull()
        dict["value"] = value.minorUnits
        dict["currency"] = serialize(entity: currency, metaOnly: true)
        
        return dict
    }

        
        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
