You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hrm - when you are returning 3 different things from one API, you shouldn't really use this method. Dart doesn't have the capability like Typescript where you can return multiple different types from one function. I would recommend as a workaround that you just use the apiDelegate directly (it is exposed for just this kind of use case).
To better support this kind of use case, I should really be returning a generated class which holds all the possible return types.
Hi,
given an APi endpoint that responds with either a 200 or 204 (Non content)
The generated code will try to de-serialize an empty body (the last line):
Which will result in:
The text was updated successfully, but these errors were encountered: