getRequest<T> method
Implementation
Future<Either<Failure, T>> getRequest<T>(
String endpoint, {
Map<String, dynamic>? params,
}) async {
try {
final response = await _dio.get(endpoint, queryParameters: params);
return Right(response.data);
} on DioException catch (e) {
return Left(_handleDioError(e));
}
}