getAll method

Implementation

Future<ResponseListDTO<ProductDTO>> getAll({ProductQuery? query}) async {
  final response = await _http!.request(
    requestType: RequestType.get,
    path: '/dashboard/products',
    query: query,
  );

  return ResponseListDTO<ProductDTO>(
    response: response,
    fromJson: ProductDTO.fromJson,
  );
}