Example #1
0
 protected void finish(TypeNativeDataJSON result)
 {
     if (fieldGeneratorUberProductsSpec.have_value)
     {
         result.setUberProductsSpec(fieldGeneratorUberProductsSpec.value);
         fieldGeneratorUberProductsSpec.have_value = false;
     }
     else if ((!(result.hasUberProductsSpec())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"UberProductsSpec\" field was missing.");
     }
     if (fieldGeneratorUberProducts.have_value)
     {
         result.setUberProducts(fieldGeneratorUberProducts.value);
         fieldGeneratorUberProducts.have_value = false;
     }
     else if ((!(result.hasUberProducts())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"UberProducts\" field was missing.");
     }
 }