What is this code add_to_serializer in all these plugins

I wonder if “add to serializer” could be a checkbox when creating a custom user field in the UI. And then the PR could be to check if the custom user field has add to serializer and then if so, add it.