toValue method
Implementation
String toValue() {
switch (this) {
case OperationType.createNamespace:
return 'CREATE_NAMESPACE';
case OperationType.deleteNamespace:
return 'DELETE_NAMESPACE';
case OperationType.updateService:
return 'UPDATE_SERVICE';
case OperationType.registerInstance:
return 'REGISTER_INSTANCE';
case OperationType.deregisterInstance:
return 'DEREGISTER_INSTANCE';
}
}