Generates an ObjectId instance from an hex string If the string is not valid returns null
static ObjectId? tryParse(String hexString) => isValidHexId(hexString) ? ObjectId.parse(hexString) : null;