val paramArg= json.decodeFromString<Map<String, String>>(rs)["params"]
val result = httpPost{
url("https://example.com")
body {
form {
"params" to paramArg
}
}
}
This code does not append 'params' arg to form, because function to works with nonnullable type. paramArg is nullable, therefore function 'to' works from standart kotlin library.
This code does not append 'params' arg to form, because function to works with nonnullable type. paramArg is nullable, therefore function 'to' works from standart kotlin library.