Michael Friend
05/12/2021, 6:51 PMtype
property on the json object somewhat overloaded where for one value i want to deserialize it into class A, but any other value is of type B and I need access to the type
value. Adding type
as a property gives an error
because it has property name that conflicts with JSON class discriminator 'type'. You can either change class discriminator in JsonConfiguration, rename property with @SerialName annotation or fall back to array polymorphism
I couldnt find any reference too array polymorphism anywhereDominaezzz
05/12/2021, 11:22 PMDominaezzz
05/12/2021, 11:22 PM