toPrivilegeLevelRequired function
Implementation
PrivilegeLevelRequired toPrivilegeLevelRequired(int? index) {
switch (index) {
case 0:
return PrivilegeLevelRequired.noPrivilegeRequired;
case 1:
return PrivilegeLevelRequired.level1PrivilegeRequired;
case 2:
return PrivilegeLevelRequired.level2PrivilegeRequired;
case 3:
return PrivilegeLevelRequired.ownerPrivilegeRequired;
}
return PrivilegeLevelRequired.unknown;
}