toLambdaInputPayloadEncodingType method

LambdaInputPayloadEncodingType toLambdaInputPayloadEncodingType()

Implementation

LambdaInputPayloadEncodingType toLambdaInputPayloadEncodingType() {
  switch (this) {
    case 'json':
      return LambdaInputPayloadEncodingType.json;
    case 'binary':
      return LambdaInputPayloadEncodingType.binary;
  }
  throw Exception(
      '$this is not known in enum LambdaInputPayloadEncodingType');
}