예제 #1
0
 protected void finish(TypeNativeDataJSON result)
 {
     if (fieldGeneratorImageURL.have_value)
     {
         result.setImageURL(fieldGeneratorImageURL.value);
         fieldGeneratorImageURL.have_value = false;
     }
     else if ((!(result.hasImageURL())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"ImageURL\" field was missing.");
     }
     if (fieldGeneratorBankroll.have_value)
     {
         result.setBankrollText(fieldGeneratorBankroll.value);
         fieldGeneratorBankroll.have_value = false;
     }
     else if ((!(result.hasBankroll())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"Bankroll\" field was missing.");
     }
 }