decode From Bson Value
fun <T> decodeFromBsonValue(deserializer: DeserializationStrategy<T>, value: BsonValue): T
Content copied to clipboard
Deserializes the given value into a value of type T using the given deserializer.
Throws
kotlinx. serialization. Serialization Exception
if the given EJSON element is not a valid EJSON input for the type T