toPrincipalType method
Implementation
PrincipalType toPrincipalType() {
switch (this) {
case 'USER':
return PrincipalType.user;
case 'GROUP':
return PrincipalType.group;
}
throw Exception('$this is not known in enum PrincipalType');
}