protected void finish(TypeNativeDataJSON result) { if (fieldGeneratorStatus.have_value) { result.setStatus(fieldGeneratorStatus.value); fieldGeneratorStatus.have_value = false; } else if ((!(result.hasStatus())) && !allow_incomplete) { error("When parsing the object for %what%, the \"Status\" field was missing."); } if (fieldGeneratorDescription.have_value) { result.setDescription(fieldGeneratorDescription.value); fieldGeneratorDescription.have_value = false; } }