toCommandFilterKey method
Implementation
CommandFilterKey toCommandFilterKey() {
switch (this) {
case 'InvokedAfter':
return CommandFilterKey.invokedAfter;
case 'InvokedBefore':
return CommandFilterKey.invokedBefore;
case 'Status':
return CommandFilterKey.status;
case 'ExecutionStage':
return CommandFilterKey.executionStage;
case 'DocumentName':
return CommandFilterKey.documentName;
}
throw Exception('$this is not known in enum CommandFilterKey');
}