I use (as far as I can imagine it) Mvp and a clean archive. The next is in the data layer, there is a repository in the data layer that receives http_clenta ( retrofit ) and goes to the network to receive data in JSON
I in the repository do the first parsing of data from jsona in pojo and then convert this pojo under the model I need for the domain code, the code looks like this
@Override public Observable<AuthorizationModel> sendMail(String mail) { return httpClient.getHttpClient().create(AuthorizationServiceApi.class) .sendMail(UniqueUtils.getMacAddr(), mail) .flatMap(authrozationParser::parseAuthorizationDate) .flatMap(serverResponseMapper::transofrmToAuthorizationModel) .subscribeOn(Schedulers.io()) .observeOn(AndroidSchedulers.mainThread()); } where do I need to do the parsing? I do in the repository. But I feel oh wrong