CheckpointCustomSerializer
Keywords: net.corda.core.serialization.CheckpointCustomSerializer interface
Date: 2023-09-18

net.corda.core.serialization

## Interface CheckpointCustomSerializer<OBJ,PROXY>

-     public CheckpointCustomSerializer<OBJ,PROXY>

  Allows CorDapps to provide custom serializers for classes that do not serialize successfully during a checkpoint. In this case, a proxy serializer can be written that implements this interface whose purpose is to move between unserializable types and an intermediate representation.

  NOTE: Only implement this interface if you have a class that triggers an error during normal checkpoint serialization/deserialization.

- - ### Constructor Detail

    - #### CheckpointCustomSerializer

          public CheckpointCustomSerializer()

  - ### Method Detail

    - #### toProxy

          PROXY toProxy(OBJ obj)

      Should facilitate the conversion of the third party object into the serializable local class specified by PROXY

    - #### fromProxy

          OBJ fromProxy(PROXY proxy)

      Should facilitate the conversion of the proxy object into a new instance of the unserializable type