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