Bson Configuration
data class BsonConfiguration(val encodeDefaults: Boolean = true, val explicitNulls: Boolean = false, val classDiscriminator: String = "_t")
Bson Configuration for serialization
Usage example with codecs:
val codec = KotlinSerializerCodec.create(mykClass, bsonConfiguration = BsonConfiguration(encodeDefaults = false))
Content copied to clipboard