toThreatIntelSetStatus method

ThreatIntelSetStatus toThreatIntelSetStatus()

Implementation

ThreatIntelSetStatus toThreatIntelSetStatus() {
  switch (this) {
    case 'INACTIVE':
      return ThreatIntelSetStatus.inactive;
    case 'ACTIVATING':
      return ThreatIntelSetStatus.activating;
    case 'ACTIVE':
      return ThreatIntelSetStatus.active;
    case 'DEACTIVATING':
      return ThreatIntelSetStatus.deactivating;
    case 'ERROR':
      return ThreatIntelSetStatus.error;
    case 'DELETE_PENDING':
      return ThreatIntelSetStatus.deletePending;
    case 'DELETED':
      return ThreatIntelSetStatus.deleted;
  }
  throw Exception('$this is not known in enum ThreatIntelSetStatus');
}