toValue method
Implementation
String toValue() {
  switch (this) {
    case OnFailure.doNothing:
      return 'DO_NOTHING';
    case OnFailure.rollback:
      return 'ROLLBACK';
    case OnFailure.delete:
      return 'DELETE';
  }
}String toValue() {
  switch (this) {
    case OnFailure.doNothing:
      return 'DO_NOTHING';
    case OnFailure.rollback:
      return 'ROLLBACK';
    case OnFailure.delete:
      return 'DELETE';
  }
}