macrame.play
This trait provides an instance of Reads for an enumeration. It works by extending the companion object of the enumeration class.
Reads
@enum class Color { Red Blue Yellow } object Color extends FromJson[Color]
This trait provides an instance of
Reads
for an enumeration. It works by extending the companion object of the enumeration class.