Hey quick question, how do I init an enum from a s...
# getting-started
j
Hey quick question, how do I init an enum from a string?
Copy code
enum class Color(val name: String) {
        RED("red"),
        GREEN("green"),
        BLUE("blue")
}
Is this correct?