tryParse static method
Implementation
static AutomationOpType? tryParse(String key) {
switch (key) {
case 'same':
return AutomationOpType.same;
case 'create':
return AutomationOpType.create;
case 'update':
return AutomationOpType.update;
case 'delete':
return AutomationOpType.delete;
case 'replace':
return AutomationOpType.replace;
case 'create-replacement':
return AutomationOpType.createReplacement;
case 'delete-replaced':
return AutomationOpType.deleteReplaced;
case 'read':
return AutomationOpType.read;
case 'read-replacement':
return AutomationOpType.readReplacement;
case 'refresh':
return AutomationOpType.refresh;
case 'discard':
return AutomationOpType.discard;
case 'discard-replaced':
return AutomationOpType.discardReplaced;
case 'remove-pending-replace':
return AutomationOpType.removePendingReplace;
case 'import':
return AutomationOpType.importOperation;
case 'import-replacement':
return AutomationOpType.importReplacement;
default:
return null;
}
}