toParticipantRole method

ParticipantRole toParticipantRole()

Implementation

ParticipantRole toParticipantRole() {
  switch (this) {
    case 'AGENT':
      return ParticipantRole.agent;
    case 'CUSTOMER':
      return ParticipantRole.customer;
    case 'SYSTEM':
      return ParticipantRole.system;
  }
  throw Exception('$this is not known in enum ParticipantRole');
}