toHistoricalMetricName method
Implementation
HistoricalMetricName toHistoricalMetricName() {
switch (this) {
case 'CONTACTS_QUEUED':
return HistoricalMetricName.contactsQueued;
case 'CONTACTS_HANDLED':
return HistoricalMetricName.contactsHandled;
case 'CONTACTS_ABANDONED':
return HistoricalMetricName.contactsAbandoned;
case 'CONTACTS_CONSULTED':
return HistoricalMetricName.contactsConsulted;
case 'CONTACTS_AGENT_HUNG_UP_FIRST':
return HistoricalMetricName.contactsAgentHungUpFirst;
case 'CONTACTS_HANDLED_INCOMING':
return HistoricalMetricName.contactsHandledIncoming;
case 'CONTACTS_HANDLED_OUTBOUND':
return HistoricalMetricName.contactsHandledOutbound;
case 'CONTACTS_HOLD_ABANDONS':
return HistoricalMetricName.contactsHoldAbandons;
case 'CONTACTS_TRANSFERRED_IN':
return HistoricalMetricName.contactsTransferredIn;
case 'CONTACTS_TRANSFERRED_OUT':
return HistoricalMetricName.contactsTransferredOut;
case 'CONTACTS_TRANSFERRED_IN_FROM_QUEUE':
return HistoricalMetricName.contactsTransferredInFromQueue;
case 'CONTACTS_TRANSFERRED_OUT_FROM_QUEUE':
return HistoricalMetricName.contactsTransferredOutFromQueue;
case 'CONTACTS_MISSED':
return HistoricalMetricName.contactsMissed;
case 'CALLBACK_CONTACTS_HANDLED':
return HistoricalMetricName.callbackContactsHandled;
case 'API_CONTACTS_HANDLED':
return HistoricalMetricName.apiContactsHandled;
case 'OCCUPANCY':
return HistoricalMetricName.occupancy;
case 'HANDLE_TIME':
return HistoricalMetricName.handleTime;
case 'AFTER_CONTACT_WORK_TIME':
return HistoricalMetricName.afterContactWorkTime;
case 'QUEUED_TIME':
return HistoricalMetricName.queuedTime;
case 'ABANDON_TIME':
return HistoricalMetricName.abandonTime;
case 'QUEUE_ANSWER_TIME':
return HistoricalMetricName.queueAnswerTime;
case 'HOLD_TIME':
return HistoricalMetricName.holdTime;
case 'INTERACTION_TIME':
return HistoricalMetricName.interactionTime;
case 'INTERACTION_AND_HOLD_TIME':
return HistoricalMetricName.interactionAndHoldTime;
case 'SERVICE_LEVEL':
return HistoricalMetricName.serviceLevel;
}
throw Exception('$this is not known in enum HistoricalMetricName');
}