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