Converts a value to a valid enum member, falling back to the given default when the value is not a member.
the enum object holding the allowed values
the value to convert
the value returned when the argument is not a member of the enum
the matching enum member or the given default
Converts a value to a valid enum member, falling back to the given default when the value is not a member.