toLambdaFunctionMetricName method
Implementation
LambdaFunctionMetricName toLambdaFunctionMetricName() {
switch (this) {
case 'Duration':
return LambdaFunctionMetricName.duration;
case 'Memory':
return LambdaFunctionMetricName.memory;
}
throw Exception('$this is not known in enum LambdaFunctionMetricName');
}