toIntegrationType method

IntegrationType toIntegrationType()

Implementation

IntegrationType toIntegrationType() {
  switch (this) {
    case 'SEND_FINDINGS_TO_SECURITY_HUB':
      return IntegrationType.sendFindingsToSecurityHub;
    case 'RECEIVE_FINDINGS_FROM_SECURITY_HUB':
      return IntegrationType.receiveFindingsFromSecurityHub;
  }
  throw Exception('$this is not known in enum IntegrationType');
}