medeia.generic.SealedTraitDerivationOptions.scala Maven / Gradle / Ivy
The newest version!
package medeia.generic
final case class SealedTraitDerivationOptions[A](
discriminatorTransformation: PartialFunction[String, String] = PartialFunction.empty,
discriminatorKey: String = "type"
) {
val transformDiscriminator: String => String = discriminatorTransformation.orElse { case x => x }
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy