toLogType method

LogType toLogType()

Implementation

LogType toLogType() {
  switch (this) {
    case 'INDEX_SLOW_LOGS':
      return LogType.indexSlowLogs;
    case 'SEARCH_SLOW_LOGS':
      return LogType.searchSlowLogs;
    case 'ES_APPLICATION_LOGS':
      return LogType.esApplicationLogs;
    case 'AUDIT_LOGS':
      return LogType.auditLogs;
  }
  throw Exception('$this is not known in enum LogType');
}