toValue method
Implementation
String toValue() {
switch (this) {
case UserRole.user:
return 'USER';
case UserRole.resource:
return 'RESOURCE';
case UserRole.systemUser:
return 'SYSTEM_USER';
}
}
String toValue() {
switch (this) {
case UserRole.user:
return 'USER';
case UserRole.resource:
return 'RESOURCE';
case UserRole.systemUser:
return 'SYSTEM_USER';
}
}