string static method

String string(
  1. ArticleKind val
)

Implementation

static String string(ArticleKind val) {
  if (val == ArticleKind.retail) {
    return 'retail';
  } else if (val == ArticleKind.basket) {
    return 'basket';
  } else if (val == ArticleKind.outOfCatalogue) {
    return 'outOfCatalogue';
  } else {
    return 'unknown';
  }
}