Example of Jackson polymorphism in Scala