BsonObjectId constructor

const BsonObjectId(
  1. String value
)

Creates an ObjectId from its 24-character hex string representation.

The client does not check the string.

Implementation

const BsonObjectId(this.value);