"org.json.simple.JSONObject input)" + Util.THROWS_CLAUSE + " {\n");
MethodScope methodScope = classScope.newMethodScope();
methodScope.indentRight();
for (FieldCondition condition : fieldConditions) {
String name = condition.getPropertyName();
methodScope.startLine("{\n");
methodScope.startLine(" Object value = input.get(\"" + name + "\");\n");
methodScope.startLine(" boolean hasValue;\n");
methodScope.startLine(" if (value == null) {\n");
methodScope.startLine(" hasValue = input.containsKey(\"" + name + "\");\n");
methodScope.startLine(" } else {\n");