Attributes
- Companion
- trait
- Graph
-
- Supertypes
- Self type
-
SumTypeHandling.type
Members list
Type members
Classlikes
For sealed classes, will determine the name of the field for disambiguating classes.
For sealed classes, will determine the name of the field for disambiguating classes.
The default is to not use a typehint field and instead have an object with a single key that is the class name. See WrapperWithClassNameField.
Note that using a discriminator is less performant, uses more memory, and may be prone to DOS attacks that are impossible with the default encoding. In addition, there is slightly less type safety when using custom product encoders (which must write an unenforced object type). Only use this option if you must model an externally defined schema.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SumTypeHandlingclass Objecttrait Matchableclass AnyShow all
Use an object with a single key that is the class name.
Use an object with a single key that is the class name.
Attributes
- Supertypes
- Self type
Inherited and Abstract types
The names of the product elements
The name of the type