How to dispatch this serializer function?

Related subject continued in a new thread.