All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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