I have this class:
@ToString @Builder @AllArgsConstructor @NoArgsConstructor @JsonSerialize(as = Dog.class) public class Dog { private String nom;