encode static method

String encode(
  1. RequestedPermission value
)

Implementation

static String encode(RequestedPermission value) {
	switch (value) {
		case RequestedPermission.maxRead:
			return 'MAX_READ';
		case RequestedPermission.fullRead:
			return 'FULL_READ';
		case RequestedPermission.maxWrite:
			return 'MAX_WRITE';
		case RequestedPermission.fullWrite:
			return 'FULL_WRITE';
		case RequestedPermission.root:
			return 'ROOT';
		}
}