toOp method

Op toOp()

Implementation

Op toOp() {
  switch (this) {
    case 'add':
      return Op.add;
    case 'remove':
      return Op.remove;
    case 'replace':
      return Op.replace;
    case 'move':
      return Op.move;
    case 'copy':
      return Op.copy;
    case 'test':
      return Op.test;
  }
  throw Exception('$this is not known in enum Op');
}