Add toSerialized