responseProcess method
dynamic
responseProcess(
- Either response
Implementation
dynamic responseProcess(Either response) {
final data = response.fold(id, id);
if (response.isRight()) {
return data;
} else if (response.isLeft() && data is Failure) {
throw data;
} else {
throw PresentationFailure(data);
}
}