@Override
  public void fromData(DataInput in,
      DeserializationContext context) throws IOException, ClassNotFoundException {
    type = context.getDeserializer().readObject(in);
    values = DataSerializer.readObjectArray(in);
    if (values != null) {
      for (Object o : values) {
        if (o instanceof PdxInstance) {
          hasPdx = true;
          break;
        }
      }
    }
  }
Helper method, Returns field values, in case of PdxInstance gets the domain objects.
geode-core/src/main/java/org/apache/geode/cache/query/internal/StructImpl.java