getBasketOperationStep function

String getBasketOperationStep(
  1. BasketOperationSteps step
)

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.');
  }
}