@Override
  public void toData(DataOutput out,
      SerializationContext context) throws IOException {
    context.getSerializer().writeObject(type, out);
    DataSerializer.writeObjectArray(values, out);
  }
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