Closed
Description
Looks like a duplication. I see this code above. It is better to create function which transforms enum to string and back.
Originally posted by @PokhodenkoSA in #93 (comment)
Example code:
Both examples contain conversion from enum to string. It is a code duplication and could be refactored into single function.
Also it is a good design to create pairs of functions to convert enum to string and string to enum.