add serialize and deserialize util.
Payload -> TPayload