toPrivilegeLevelBeforeBlocked function
Implementation
PrivilegeLevelBeforeBlocked toPrivilegeLevelBeforeBlocked(int? index) {
switch (index) {
case 0:
return PrivilegeLevelBeforeBlocked.noPrivilege;
case 1:
return PrivilegeLevelBeforeBlocked.level1Privilege;
case 2:
return PrivilegeLevelBeforeBlocked.level2Privilege;
case 3:
return PrivilegeLevelBeforeBlocked.ownerPrivilege;
}
return PrivilegeLevelBeforeBlocked.unknown;
}