toTriggerType method

TriggerType toTriggerType()

Implementation

TriggerType toTriggerType() {
  switch (this) {
    case 'CreatePipeline':
      return TriggerType.createPipeline;
    case 'StartPipelineExecution':
      return TriggerType.startPipelineExecution;
    case 'PollForSourceChanges':
      return TriggerType.pollForSourceChanges;
    case 'Webhook':
      return TriggerType.webhook;
    case 'CloudWatchEvent':
      return TriggerType.cloudWatchEvent;
    case 'PutActionRevision':
      return TriggerType.putActionRevision;
  }
  throw Exception('$this is not known in enum TriggerType');
}