Skip to content

Instantly share code, notes, and snippets.

@skvithalani
Last active February 18, 2020 10:20
Show Gist options
  • Save skvithalani/0fe11143a7f355eb9398cb829eaa866e to your computer and use it in GitHub Desktop.
Save skvithalani/0fe11143a7f355eb9398cb829eaa866e to your computer and use it in GitHub Desktop.
Blog snippets for `Understanding Akka (de)serialization with Jackson and Borer`
final case class Zoo(primaryAttraction: Animal)
sealed abstract class Animal
object Animal {
final case class Lion(name: String) extends Animal
final case class Elephant(name: String, age: Int) extends Animal
final case object Tiger extends Animal
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment