set

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

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


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

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