of

fun of(value: String, fieldName: String): SortDirection(source)

Parses value case-insensitively.

Parameters

fieldName

Only used in the error message.

Throws

If value is neither ASC nor DESC.