private void  fromJSONLocation(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        FlightLocationJSON convert_classy = FlightLocationJSON.from_json(json_value, ignore_extras, true);

        setLocation(convert_classy);
    }
 public void setLocation(FlightLocationJSON new_value)
 {
     if (flagHasLocation)
     {
     }
     flagHasLocation = true;
     storeLocation   = new_value;
 }
        protected override void finish()
        {
            FlightLocationJSON result = new FlightLocationJSON();

            Debug.Assert(result != null);
            finish(result);
            int extra_count = unknownFieldGenerator.field_names.Count;

            Debug.Assert(extra_count == unknownFieldGenerator.field_values.Count);
            for (int extra_num = 0; extra_num < extra_count; ++extra_num)
            {
                result.extraFlightLocationAppendPair(unknownFieldGenerator.field_names[extra_num], unknownFieldGenerator.field_values[extra_num]);
            }
            unknownFieldGenerator.field_names.Clear();
            unknownFieldGenerator.field_values.Clear();
            unknownFieldGenerator.index = new Dictionary <string, JSONValue>();
            handle_result(result);
        }
 protected void finish(FlightLocationJSON result)
 {
     if (fieldGeneratorCountryName.have_value)
     {
         result.setCountryName(fieldGeneratorCountryName.value);
         fieldGeneratorCountryName.have_value = false;
     }
     if (fieldGeneratorPostalCode.have_value)
     {
         result.setPostalCode(fieldGeneratorPostalCode.value);
         fieldGeneratorPostalCode.have_value = false;
     }
     if (fieldGeneratorCityName.have_value)
     {
         result.setCityName(fieldGeneratorCityName.value);
         fieldGeneratorCityName.have_value = false;
     }
     if (fieldGeneratorStateAbbreviation.have_value)
     {
         result.setStateAbbreviation(fieldGeneratorStateAbbreviation.value);
         fieldGeneratorStateAbbreviation.have_value = false;
     }
     if (fieldGeneratorLatitude.have_value)
     {
         result.setLatitudeText(fieldGeneratorLatitude.value);
         fieldGeneratorLatitude.have_value = false;
     }
     else if ((!(result.hasLatitude())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"Latitude\" field was missing.");
     }
     if (fieldGeneratorLongitude.have_value)
     {
         result.setLongitudeText(fieldGeneratorLongitude.value);
         fieldGeneratorLongitude.have_value = false;
     }
     else if ((!(result.hasLongitude())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"Longitude\" field was missing.");
     }
 }
 protected override void handle_result(FlightLocationJSON result)
 {
     top.value.Add(result);
 }
        protected override void handle_result(FlightLocationJSON result)
        {
//@@@            Debug.Assert(!have_value);
            have_value = true;
            value      = result;
        }
 protected abstract void handle_result(FlightLocationJSON new_result);