CborBuilder

class CborBuilder

Builder of the Cbor instance provided by Cbor factory function.

Properties

Link copied to clipboard
var encodeDefaults: Boolean

Specifies whether default values of Kotlin properties should be encoded.

Link copied to clipboard
var ignoreUnknownKeys: Boolean

Specifies whether encounters of unknown properties in the input CBOR should be ignored instead of throwing SerializationException. false by default.

Link copied to clipboard
var serializersModule: SerializersModule

Module with contextual and polymorphic serializers to be used in the resulting Cbor instance.