parse static method

SortField parse(
  1. String queryParam
)

Implementation

static SortField parse(String queryParam) => queryParam.startsWith('-')
    ? Desc(queryParam.substring(1))
    : Asc(queryParam);