encode static method

String encode(
  1. SortDirection value
)

Implementation

static String encode(SortDirection value) {
	switch (value) {
		case SortDirection.asc:
			return 'asc';
		case SortDirection.desc:
			return 'desc';
		}
}