interface KeyedDecodingContainer
source · line 38public
public interface KeyedDecodingContainer
A named-field record container. Finish the record with end after processing its fields.
function optional
source · line 50public
public fun optional(name: String): Option<Decoder>
Returns None when the field is absent; explicit null is still a present child decoder.
parameter name
source · line 50public
name: String
function required
source · line 46public
public fun required(name: String): Decoder
Returns the named child decoder, failing when the field is absent.
parameter name
source · line 46public
name: String
property keys
source · line 42public
public val keys: List<String>
get: public read-only
The field names available in this record.
function end
source · line 54public
public fun end(): Unit
Completes the container and permits the backend to check its final structure.