getRequest method
Implementation
Future<Either<Failure, Response>> getRequest(Dio dio, String url) async {
try {
var response =
await dio.get(url, options: Options(contentType: "application/json"));
return Right(response);
} catch (e) {
return Left(HelperGetRequestFailure());
}
}