Custom serializer generator support