public void setGender(string chars) { SportsOlympicsAthleteGenderJSON.TypeValueKnownValues known = SportsOlympicsAthleteGenderJSON.stringToValue(chars); SportsOlympicsAthleteGenderJSON.TypeValue new_value = new SportsOlympicsAthleteGenderJSON.TypeValue(); if (known == SportsOlympicsAthleteGenderJSON.TypeValueKnownValues.Value__none) { new_value.in_known_list = false; new_value.string_value = chars; } else { new_value.in_known_list = true; new_value.list_value = known; } setGender(new_value); }
public void setGender(SportsOlympicsAthleteGenderJSON.TypeValue new_value) { setGender(new SportsOlympicsAthleteGenderJSON(new_value)); }