let's say I want map enum to and from my own strin...
# getting-started
m
let's say I want map enum to and from my own strings, so I just
override fun toString()
, and now I would like make
constructor(type: String)
that will create enum from appropriate string, anyone have idea how to accomplish such thing?
ohh nice! thank you ❤️! I will handle null checks on my own 😉
you are right, I already get rid of it since I saw it's no needed