getAllCustomersWithHttpInfo method

Future<Response> getAllCustomersWithHttpInfo({
  1. Object? authorization,
  2. bool? excludeImages,
})

Performs an HTTP 'GET /api/v1/Customers/all' operation and returns the Response. Parameters:

Implementation

Future<Response> getAllCustomersWithHttpInfo({
  Object? authorization,
  bool? excludeImages,
}) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v1/Customers/all';

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  if (excludeImages != null) {
    queryParams.addAll(_queryParams('', 'excludeImages', excludeImages));
  }

  if (authorization != null) {
    headerParams[r'authorization'] = parameterToString(authorization);
  }

  const authNames = <String>[];
  const contentTypes = <String>[];

  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
    authNames,
  );
}