marshallToJSON(marshallMethodBlock, toMap);
marshallMethodBlock.finish();
classStructureBuilder.publicOverridesMethod("handles", Parameter.of(Object.class, "a0"))
.append(Stmt.nestedCall(Bool.and(
Bool.notEquals(Stmt.loadVariable("a0").invoke("isObject"), null),
Stmt.loadVariable("a0").invoke("isObject").invoke("get", SerializationParts.ENCODED_TYPE)
.invoke("equals", Stmt.loadVariable("this").invoke("getTypeHandled").invoke("getName"))
)).returnValue()).finish();