The first enum is ok, but try `ColorSegment.valueO...
# android
d
The first enum is ok, but try
ColorSegment.valueOf("RED")?.rgb ?:  0
to retrieve it since I think
valueOf
can return null if not found...