parseError method
Implementation
Object? parseError(EResponse response) {
Object? errorTypeResult = response.error;
try {
if (errorType is Jsonable) {
Map? error = response.error is String ? jsonDecode(response.error!.toString()) : response.error;
errorTypeResult = (errorType as Jsonable).fromJsonMap(error?['fault']);
}
} catch (e) {
print(e);
}
return errorTypeResult;
}