Implement Serializer and Deserializer interfaces

Change-Id: Ie2bbbee182c69da3d3e95fe139482db19da4b811