toRolePermissionType method

RolePermissionType toRolePermissionType()

Implementation

RolePermissionType toRolePermissionType() {
  switch (this) {
    case 'DIRECT':
      return RolePermissionType.direct;
    case 'INHERITED':
      return RolePermissionType.inherited;
  }
  throw Exception('$this is not known in enum RolePermissionType');
}