toFindingSourceType method

FindingSourceType toFindingSourceType()

Implementation

FindingSourceType toFindingSourceType() {
  switch (this) {
    case 'POLICY':
      return FindingSourceType.policy;
    case 'BUCKET_ACL':
      return FindingSourceType.bucketAcl;
    case 'S3_ACCESS_POINT':
      return FindingSourceType.s3AccessPoint;
  }
  throw Exception('$this is not known in enum FindingSourceType');
}