Returns the matching enum instance based on a input string.
the matching instance of null
null
the enum class
the name of the enum to match