toAction method
Implementation
Action toAction() {
switch (this) {
case 'CLIPBOARD_COPY_FROM_LOCAL_DEVICE':
return Action.clipboardCopyFromLocalDevice;
case 'CLIPBOARD_COPY_TO_LOCAL_DEVICE':
return Action.clipboardCopyToLocalDevice;
case 'FILE_UPLOAD':
return Action.fileUpload;
case 'FILE_DOWNLOAD':
return Action.fileDownload;
case 'PRINTING_TO_LOCAL_DEVICE':
return Action.printingToLocalDevice;
}
throw Exception('$this is not known in enum Action');
}