toOperationTargetType method

OperationTargetType toOperationTargetType()

Implementation

OperationTargetType toOperationTargetType() {
  switch (this) {
    case 'NAMESPACE':
      return OperationTargetType.namespace;
    case 'SERVICE':
      return OperationTargetType.service;
    case 'INSTANCE':
      return OperationTargetType.instance;
  }
  throw Exception('$this is not known in enum OperationTargetType');
}