add to_hash/from_hash to Payload