4
Wie kann ich diese as String
Casts loswerden?Spezifizieren <K,V> Geben Sie in `Paar <K,V>`
Was ich tun möchte, ist die fun
Definition zu ändern, aber ich bin mir nicht sicher, wie es geht ... String
aufzunehmen dort
parametersOf("appKey" to "asdas3334", "token" to "433432")
/**
* Returns a new [Parameters] with the specified contents, given as a list of pairs
* where the first component is the key and the second is the value.
*/
fun <K, V> parametersOf(vararg pairs: Pair<K, V>): Parameters {
val p = Parameters(pairs.size)
for ((key, value) in pairs)
p.put(key as String, value as String)
return p
}