(mongodb >=1.16.0)
MongoDB\BSON\Document::fromBSON — Construct a new document instance from a BSON string
bson
(string)A string containing a document in BSON format.
Returns a new MongoDB\BSON\Document instance.
bson
is an invalid BSON string or contains more than a single document.