Add a `getSerializedData` method

In order to build up GET queries on the fly.

- [x] implementation
- [x] documentation