toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case LambdaEventSourceType.pubSub:
      return 'PUB_SUB';
    case LambdaEventSourceType.iotCore:
      return 'IOT_CORE';
  }
}