updateToPickupDone method
Implementation
@override
Future<Either<AppException, response.Response>> updateToPickupDone(
Map<String, dynamic> data) async {
// TODO: implement updateToRejected
try {
final eitherType = await networkService
.post('return-sale/mark_as_pickup_success', data: data);
return eitherType.fold(
(exception) {
return Left(exception);
},
(response) {
return Right(response);
},
);
} catch (e) {
return Left(
AppException(
message: 'Unknown error occured',
statusCode: 1,
identifier: '${e.toString()}\nLoginUserRemoteDataSource.loginUser',
),
);
}
}