toOnFailure method
Implementation
OnFailure toOnFailure() {
switch (this) {
case 'DO_NOTHING':
return OnFailure.doNothing;
case 'ROLLBACK':
return OnFailure.rollback;
case 'DELETE':
return OnFailure.delete;
}
throw Exception('$this is not known in enum OnFailure');
}