make `serialize_with_settings` provider attribute public