toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ParticipantRole.agent:
      return 'AGENT';
    case ParticipantRole.customer:
      return 'CUSTOMER';
    case ParticipantRole.system:
      return 'SYSTEM';
  }
}