Companion
object Companion
KotlinSerializerCodec companion object
Functions
Link copied to clipboard
inline fun <T : Any> create(serializersModule: SerializersModule = defaultSerializersModule, bsonConfiguration: BsonConfiguration = BsonConfiguration()): Codec<T>?
fun <T : Any> create(kClass: KClass<T>, serializersModule: SerializersModule = defaultSerializersModule, bsonConfiguration: BsonConfiguration = BsonConfiguration()): Codec<T>?
Creates a Codec<T>
for the kClass or returns null if there is no serializer available.
fun <T : Any> create(kClass: KClass<T>, serializer: KSerializer<T>, serializersModule: SerializersModule, bsonConfiguration: BsonConfiguration): Codec<T>
Creates a Codec<T>
for the kClass using the supplied serializer