encode static method
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';
}
}