i am expecting some string value and i need to find, if i have corresponding enum value defined.
my enum value is
enum class Status {
Created, Updated
}
and what i want to achieve in this function is to check if any of these enum values matching, ignore the case
private fun getStatus(
value: String
): Status {
....
}
if nothing matched then i want to throw an error.
thank you so much for your help in advance!!