I'm working with an api that returns either `{ "data": { ... } }` or `{ "error": { ... }}` for all o...
z
I'm working with an api that returns either
{ "data": { ... } }
or
{ "error": { ... }}
for all of its calls. Are there any examples out there for modeling this using a sealed class w/ Retrofit
d
Try retrofit and rxJava
z
I'm already using Retrofit, but w/ suspend functions. I was more wondering about mapping to the sealed result class