I am trying to deserialize a type that is polymorphic on one of its properties but cant seem to figure out a way. đ§”
efemoney
11/03/2024, 12:21 PM
I receive a json list of this type
Copy code
@Serializable
class TransformedToken<V>(
val type: String,
val name: String,
val value: V,
val description: String?,
val original: Original<V>,
val attributes: JsonObject,
val path: List<String>,
val filePath: String,
val isSource: Boolean,
)
typeof
value
changes based on
efemoney
11/03/2024, 12:23 PM
Cant seem to figure out a way to say:
âwhile deserializing