skema

JsonNode

class JsonNode(val type: KClass<*>, val name: String, val shape: JsonNodeShape = JsonNodeShape.Fields, val operands: List<String> = emptyList(), val mapping: JsonPayloadMapping? = null, val fixed: Map<String, JsonElement> = emptyMap(), serializer: () -> KSerializer<*>)(source)

A concrete type and its compact JSON form.

Constructors

JsonNode

constructor(type: KClass<*>, name: String, shape: JsonNodeShape = JsonNodeShape.Fields, operands: List<String> = emptyList(), mapping: JsonPayloadMapping? = null, fixed: Map<String, JsonElement> = emptyMap(), serializer: () -> KSerializer<*>)(source)

Properties

fixed

val fixed: Map<String, JsonElement>(source)

Implied by name and left off the wire; tells apart nodes of one type.

mapping

name

Operator key or bare name.

operands

Fields for the operand shapes; never @EncodeDefault(NEVER), as they must always encode.

shape

type

val type: KClass<*>(source)