In the future you should add an interface for this.  We have a similar design with `Block` serialization in main Presto