ribesg
03/14/2019, 10:23 AMhits
array containing the results of the query. Depending on the index the query was run on, the model of these results change.
How do I implement that with kotlinx.serialization
?
- Can I use generics?
- Can I use inheritance, with one subclass per model?
- Can I say that these results should stay “raw”, like JsonObject or String, and deserialize them later to the correct model?qlitzler
03/14/2019, 10:28 AMribesg
03/14/2019, 10:39 AMqlitzler
03/14/2019, 10:41 AM