toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ThreatIntelSetStatus.inactive:
      return 'INACTIVE';
    case ThreatIntelSetStatus.activating:
      return 'ACTIVATING';
    case ThreatIntelSetStatus.active:
      return 'ACTIVE';
    case ThreatIntelSetStatus.deactivating:
      return 'DEACTIVATING';
    case ThreatIntelSetStatus.error:
      return 'ERROR';
    case ThreatIntelSetStatus.deletePending:
      return 'DELETE_PENDING';
    case ThreatIntelSetStatus.deleted:
      return 'DELETED';
  }
}