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