I would like to implement a universal Data Model class which will have one attribute of type string and it will contain the entire server json response
So I am a junior android developer and the question i have in mind is that i have to create a different data model class for different server response. so i thought of a workaround and created a single data model for all my view using adapters to inflate data. Now this data model class has only one attribute of type string and it will contain the entire json response i get from my api which i can parse later in my adapters.
I just want to know if my approach is wrong or is it much cleaner practice. and/or are there any performance benefits?