toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ContactFlowType.contactFlow:
      return 'CONTACT_FLOW';
    case ContactFlowType.customerQueue:
      return 'CUSTOMER_QUEUE';
    case ContactFlowType.customerHold:
      return 'CUSTOMER_HOLD';
    case ContactFlowType.customerWhisper:
      return 'CUSTOMER_WHISPER';
    case ContactFlowType.agentHold:
      return 'AGENT_HOLD';
    case ContactFlowType.agentWhisper:
      return 'AGENT_WHISPER';
    case ContactFlowType.outboundWhisper:
      return 'OUTBOUND_WHISPER';
    case ContactFlowType.agentTransfer:
      return 'AGENT_TRANSFER';
    case ContactFlowType.queueTransfer:
      return 'QUEUE_TRANSFER';
  }
}