Serialize map request fields.

Closes #24.