I have a fonction that builds a data class out of a JSON response from an API. Until then, that is fine. But when I have pagination, I don’t know how to generate a unique data class from the different pages. Can we “merge” 2 data classes?
I’ll probably end up handling a list of Data Classes (which will impact a lot the rest of the code) but if anyone has an elegant idea ... 🙂