toInstanceAttributeType method

InstanceAttributeType toInstanceAttributeType()

Implementation

InstanceAttributeType toInstanceAttributeType() {
  switch (this) {
    case 'INBOUND_CALLS':
      return InstanceAttributeType.inboundCalls;
    case 'OUTBOUND_CALLS':
      return InstanceAttributeType.outboundCalls;
    case 'CONTACTFLOW_LOGS':
      return InstanceAttributeType.contactflowLogs;
    case 'CONTACT_LENS':
      return InstanceAttributeType.contactLens;
    case 'AUTO_RESOLVE_BEST_VOICES':
      return InstanceAttributeType.autoResolveBestVoices;
    case 'USE_CUSTOM_TTS_VOICES':
      return InstanceAttributeType.useCustomTtsVoices;
    case 'EARLY_MEDIA':
      return InstanceAttributeType.earlyMedia;
  }
  throw Exception('$this is not known in enum InstanceAttributeType');
}