protected void finish(SportsPlayersInformationNuggetJSON result) { if (fieldGeneratorQueryData.have_value) { result.initQueryData(); int count = fieldGeneratorQueryData.value.Count; for (int num = 0; num < count; ++num) { result.appendQueryData(fieldGeneratorQueryData.value[num]); } fieldGeneratorQueryData.value.Clear(); fieldGeneratorQueryData.have_value = false; } else if ((!(result.hasQueryData())) && !allow_incomplete) { error("When parsing the object for %what%, the \"QueryData\" field was missing."); } if (fieldGeneratorPlayers.have_value) { result.initPlayers(); int count = fieldGeneratorPlayers.value.Count; for (int num = 0; num < count; ++num) { result.appendPlayers(fieldGeneratorPlayers.value[num]); } fieldGeneratorPlayers.value.Clear(); fieldGeneratorPlayers.have_value = false; } base.finish(result); }