fix : new ui changes
This commit is contained in:
@@ -128,6 +128,12 @@ class DioRemote implements IHttpClient {
|
||||
options: Options(headers: headers),
|
||||
cancelToken: ApiHandler.globalCancelToken,
|
||||
);
|
||||
if (fromJson != null) {
|
||||
final rawData = response.data;
|
||||
final parsedData = rawData is Map<String, dynamic> ? fromJson(rawData) : null;
|
||||
response.data = parsedData;
|
||||
return DioResponse<T>(response);
|
||||
}
|
||||
return DioResponse<T>(response);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user