toOperationType method
Implementation
OperationType toOperationType() {
switch (this) {
case 'CREATE_NAMESPACE':
return OperationType.createNamespace;
case 'DELETE_NAMESPACE':
return OperationType.deleteNamespace;
case 'UPDATE_SERVICE':
return OperationType.updateService;
case 'REGISTER_INSTANCE':
return OperationType.registerInstance;
case 'DEREGISTER_INSTANCE':
return OperationType.deregisterInstance;
}
throw Exception('$this is not known in enum OperationType');
}