Implement deserialize because it is directly called from generateTuples