toPrivilegeLevelRequired function

PrivilegeLevelRequired toPrivilegeLevelRequired(
  1. int? index
)

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;
}