toOperation method

Operation toOperation()

Implementation

Operation toOperation() {
  switch (this) {
    case 'replace':
      return Operation.replace;
    case 'remove':
      return Operation.remove;
  }
  throw Exception('$this is not known in enum Operation');
}