toLambdaEventSourceType method

LambdaEventSourceType toLambdaEventSourceType()

Implementation

LambdaEventSourceType toLambdaEventSourceType() {
  switch (this) {
    case 'PUB_SUB':
      return LambdaEventSourceType.pubSub;
    case 'IOT_CORE':
      return LambdaEventSourceType.iotCore;
  }
  throw Exception('$this is not known in enum LambdaEventSourceType');
}