toAwsManagedHumanLoopRequestSource method

AwsManagedHumanLoopRequestSource toAwsManagedHumanLoopRequestSource()

Implementation

AwsManagedHumanLoopRequestSource toAwsManagedHumanLoopRequestSource() {
  switch (this) {
    case 'AWS/Rekognition/DetectModerationLabels/Image/V3':
      return AwsManagedHumanLoopRequestSource
          .awsRekognitionDetectModerationLabelsImageV3;
    case 'AWS/Textract/AnalyzeDocument/Forms/V1':
      return AwsManagedHumanLoopRequestSource
          .awsTextractAnalyzeDocumentFormsV1;
  }
  throw Exception(
      '$this is not known in enum AwsManagedHumanLoopRequestSource');
}