encode static method

String encode(
  1. AccessLevel value
)

Implementation

static String encode(AccessLevel value) {
	switch (value) {
		case AccessLevel.read:
			return 'READ';
		case AccessLevel.write:
			return 'WRITE';
		}
}