@JsonSerialize and @JsonDeserialize implementation generation

Hi!

I’m trying to migrate an interface from Java to Kotlin; this interface has annotations like these:

@Value.Immutable
@JsonSerialize(as = ImmutableVal.class)
@JsonDeserialize(as = ImmutableVal.class)
interface Val {

}

When compiling in Java, class ImmutableVal is generated, but when I move the class to Kotlin, using the same annotations, implementation class is not generated… What can I do? Is there anything that must be configured?

Thank you!!

1 Like