toReturnValuesOnConditionCheckFailure method

ReturnValuesOnConditionCheckFailure toReturnValuesOnConditionCheckFailure()

Implementation

ReturnValuesOnConditionCheckFailure toReturnValuesOnConditionCheckFailure() {
  switch (this) {
    case 'ALL_OLD':
      return ReturnValuesOnConditionCheckFailure.allOld;
    case 'NONE':
      return ReturnValuesOnConditionCheckFailure.none;
  }
  throw Exception(
      '$this is not known in enum ReturnValuesOnConditionCheckFailure');
}