Performs the reverse of op_type_to_string
a string
the ServerOperationType represented by str, or MAX if str is not a valid representation of a ServerOperationType
str