toCompatibility method
Implementation
Compatibility toCompatibility() {
switch (this) {
case 'NONE':
return Compatibility.none;
case 'DISABLED':
return Compatibility.disabled;
case 'BACKWARD':
return Compatibility.backward;
case 'BACKWARD_ALL':
return Compatibility.backwardAll;
case 'FORWARD':
return Compatibility.forward;
case 'FORWARD_ALL':
return Compatibility.forwardAll;
case 'FULL':
return Compatibility.full;
case 'FULL_ALL':
return Compatibility.fullAll;
}
throw Exception('$this is not known in enum Compatibility');
}