@Override
  public void fromData(PdxReader reader) {
    itemNo = reader.readLong("itemNo");
    description = reader.readString("description");
    quantity = reader.readInt("quantity");
    unitPrice = reader.readFloat("unitPrice");
    totalPrice = reader.readFloat("totalPrice");

  }
The Item class models item entity in the real world.
<p>

@since GemFire 8.0
geode-web-api/src/integrationTest/java/org/apache/geode/rest/internal/web/controllers/Item.java