parseOrderDirectionFromEnum static method

String parseOrderDirectionFromEnum(
  1. OrderDirections direction
)

Implementation

static String parseOrderDirectionFromEnum(OrderDirections direction) {
  switch (direction) {
    case OrderDirections.ascending:
      return 'asc';
    case OrderDirections.descending:
      return 'desc';
  }
}