getImages method

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

Parameters:

  • Object authorization:

  • List<int> customersIds:

Implementation

Future<List<CustomerImageModel>> getImages({
  Object? authorization,
  List<int>? customersIds,
}) async {
  final response = await getImagesWithHttpInfo(
    authorization: authorization,
    customersIds: customersIds,
  );
  if (response.statusCode >= HttpStatus.badRequest) {
    throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  }

  final responseBody = await _decodeBodyBytes(response);
  return (await apiClient.deserializeAsync(
          responseBody, 'List<CustomerImageModel>') as List)
      .cast<CustomerImageModel>()
      .toList(growable: false);
}