toDestination method

Destination toDestination()

Implementation

Destination toDestination() {
  switch (this) {
    case 'CLOUDWATCH_LOGS':
      return Destination.cloudwatchLogs;
    case 'S3':
      return Destination.s3;
  }
  throw Exception('$this is not known in enum Destination');
}