Building an application using Google recommended architecture seem like a nice way of separation and modularization for the app. That being said, I often stumble upon the fact that, when caching data that comes from an API, a need for using different models for remote & local dataSources may arise. (I found a comment here by swankjesse which states the same).
Different models looks nice, but having complex models with multiple nesting levels seems to be a pain in the ass (mapping local & remote models to a common data layer entity).
Another argument would be that when requesting data from network, API may respond with a JSON mapping pagination and other stuff inside (which is needed by ViewModel(just an example) to load more data).
Having a Repository with local & remote dataSources looks like is kinda ruined (local responds with List of Objects, remote responds with class that contains the List of Objects).
All sample apps that I've seen demonstrates using simple POJOs (which in production code is almost never realistic). Any idea on solving this architecture puzzle?