toCloudWatchLogsInitialPosition method
Implementation
CloudWatchLogsInitialPosition toCloudWatchLogsInitialPosition() {
switch (this) {
case 'start_of_file':
return CloudWatchLogsInitialPosition.startOfFile;
case 'end_of_file':
return CloudWatchLogsInitialPosition.endOfFile;
}
throw Exception('$this is not known in enum CloudWatchLogsInitialPosition');
}