You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I could not figure out if TypeConverter could support such a use case and hence I am raising an issue. Consider the following situation:
@JsonObject
class A{
@JsonField
String aa;
}
@JsonObject
class B extends A{
@JsonField
String bb;
}
@JsonObject
class C extends A{
@JsonField
String cc;
}
I want to parse my incoming JSON array into List<A> but while fetching them I would like to type cast them as the child classes of B and C and use cInstance.getCc() .Is this possible?
The text was updated successfully, but these errors were encountered:
I could not figure out if TypeConverter could support such a use case and hence I am raising an issue. Consider the following situation:
I want to parse my incoming JSON array into
List<A>
but while fetching them I would like to type cast them as the child classes ofB
andC
and usecInstance.getCc()
.Is this possible?The text was updated successfully, but these errors were encountered: