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