@Override
  public void toData(PdxWriter writer) {
    writer.writeString("@type", getClass().getName());
    writer.writeLong("id", id);
    writer.writeString("firstName", firstName);
    writer.writeString("middleName", middleName);
    writer.writeString("lastName", lastName);
    writer.writeObject("gender", gender);
    writer.writeDate("birthDate", birthDate);

  }
The Person class is an abstraction modeling a person.
<p>

@since GemFire 8.0
geode-assembly/geode-assembly-test/src/main/java/org/apache/geode/rest/internal/web/controllers/Person.java