toUserRole
Extension function to convert a string to a UserRole.
This function takes a string, converts it to uppercase, and maps it to the corresponding UserRole. If the string does not match any predefined role, it defaults to CUSTOMER.
Receiver
The string representation of the user role.
Return
The corresponding UserRole. Defaults to CUSTOMER if no match is found.