getBasketOperationStep function
Implementation
String getBasketOperationStep(BasketOperationSteps step) {
switch (step) {
case BasketOperationSteps.ADD:
return 'add';
case BasketOperationSteps.REMOVE:
return 'remove';
default:
throw Exception('Basket operation step is not defined.');
}
}