public static PersisterStateBatch from(ReadShareGroupStateResponseData.StateBatch batch) {
        return new PersisterStateBatch(
                batch.firstOffset(),
                batch.lastOffset(),
                batch.deliveryState(),
                batch.deliveryCount());
    }
This class contains the information for a single batch of state information for use by the {@link Persister}.
server-common/src/main/java/org/apache/kafka/server/group/share/PersisterStateBatch.java