public void setSortByField(string chars)
 {
     FlightSortFieldJSON.TypeValueKnownValues known     = FlightSortFieldJSON.stringToValue(chars);
     FlightSortFieldJSON.TypeValue            new_value = new FlightSortFieldJSON.TypeValue();
     if (known == FlightSortFieldJSON.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;
     }
     setSortByField(new_value);
 }
 public void setSortByField(FlightSortFieldJSON.TypeValue new_value)
 {
     setSortByField(new FlightSortFieldJSON(new_value));
 }