I have an enum class ``` enum class Orientation {...
# getting-started
s
I have an enum class
Copy code
enum class Orientation { vertical, horizontal }
The names
vertical
and
horizontal
need to remain all lower case. I am using this enum in parsing a JSON response which contains orientation in all lowercase. Is there a way to suppress the warning? Studio doesn’t give any
@Suppress
suggestions __ Or alternatively a way to name Orientation.Horizontal.name to be
horizontal