with

abstract fun <T : Any> with(key: CodecContext.Key<T>, value: T): DecodeContext

Returns a new DecodeContext with key set to value. Does not modify this context — contexts are immutable.