Jackson kotlin inheritance deserialize problem
I am using
jackson-module-kotlin:2.13.3 and retrofit2
converter jackson2.7.2
in android project. I have a field 'status' that I receive and from it I understand which class to convert further, but the problem is that in descendant classes it becomes null. Main code is in Test.kt below.
ResponseSuccessAbstract.kt:
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.PROPERTY,
property = "status")
@JsonSubTypes(
JsonSubTypes.Type(value =...