toPrivilegeLevelBeforeBlocked function

PrivilegeLevelBeforeBlocked toPrivilegeLevelBeforeBlocked(
  1. int? index
)

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