I was wondering if there is an example of how to create and register a custom serializer for the DataConverter for a specific data type. Ex. I have a data type that has defined interfaces within it, so the default deserializer/serializer won’t be able to determine what type the interfaces really are so I need to use a couple custom adapter registered to gson for example. So what im looking for is to specify that for this type, use this serailizer/deserializer for the DataCoverter.
I saw a post referencing sdk-java/PayloadConverter.java at master · temporalio/sdk-java · GitHub and this sdk-java/DefaultDataConverter.java at 45de2dc97486f38b57d5320eb9fdd04e098bd6f0 · temporalio/sdk-java · GitHub, but its not clear how the specific type is registered to a specific converter payload.