getImages method
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);
}