readDocument

abstract override fun readDocument(bytes: ByteArray): Bson(source)


open fun readDocument(value: BsonDocument): Bson(source)

Instantiates a new Bson instance by wrapping the official driver's BsonDocument.

The opposite operation is Bson.raw.