getImagesWithHttpInfo method

Future<Response> getImagesWithHttpInfo({
  1. Object? authorization,
  2. List<int>? customersIds,
})

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

Implementation

Future<Response> getImagesWithHttpInfo({
  Object? authorization,
  List<int>? customersIds,
}) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v1/Customers/images';

  // ignore: prefer_final_locals
  Object? postBody;

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

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

  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,
  );
}