pajatopmr
11/28/2020, 9:43 AMsealed class ResponseError {
abstract val code: Number
abstract val message: String
abstract val data: ErrorData? // where ErrorData is polymorphic (sealed class)
}
Both `Number`and `ErrorData`are polymorphic. Using content-based polymorphic deserialization is relatively straight-forward for either property alone but it is not clear to me how to use this deserialization approach for both properties simultaneously. What KSX strategies make sense for this kind of use case?