macrame.play.enums
This trait provides an instance of Format for an enumeration. It works by extending the companion object of the enumeration class.
Format
@enum class Color { Red Blue Yellow } object Color extends JsonConverters[Color]
If you need your Format instance to be case-insensitive you can override the caseSensitive member like so:
caseSensitive
@enum class Color { Red Blue Yellow } object Color extends JsonConverters[Color] { override val caseSensitive = false }
Indicates whether reads is case sensitive.
reads
This trait provides an instance of
Format
for an enumeration. It works by extending the companion object of the enumeration class.If you need your
Format
instance to be case-insensitive you can override thecaseSensitive
member like so: