cfleming
11/12/2024, 8:33 AMInvocation
form:
data class Invocation(
val name: String,
val arguments: Response,
val methodCallId: String
)
Here the Response
is a sealed class with subclasses. When deserialising I'd like to discriminate the type of Response
using the name
field from Invocation
. How can I do that?Ahmed
11/13/2024, 2:12 PMKSerializer
.