Calls the function to perform the custom serialization.
the instance that is to be serialized
the serializer that performs the serialization
the key of the given value
See Implementation
Calls the function to perform the custom serialization.