Element
class Element(val name: String, val type: String, val optional: Boolean = false, val nullable: Boolean = false, jsonNames: List<String> = emptyList(), val encodeDefault: EncodeDefaultMode? = null)
A single element (field) of a ContractKind.CLASS contract, recording the compatibility-bearing facts about how it appears on the JSON wire.
jsonNames is normalized to sorted order so that equality is independent of annotation declaration order.
Constructors
Properties
Link copied to clipboard
the field's @EncodeDefault mode (EncodeDefaultMode.ABSENT when verified to carry none), or null when it was not recorded and is therefore unknown (#158).