toValue method

String toValue()

Implementation

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