set

inline operator fun <T> set(key: String, value: T)

Puts value into the compound under key, remembering T for serialization.

Throws

If key has an entry provider with an incompatible type and JVM assertions are enabled.


fun <T> set(type: KType, key: String, value: T)

Puts value into the compound under key, remembering type for serialization.

Throws

If key has an entry provider with an incompatible type and JVM assertions are enabled.