How to exclude properties marked ExcludeInSchema=true from NativeTypesService

Is it possible to exclude these properties when the request is Not Local Network or some other property?

I see that I can create a global filter and try to remove the properties from the raw txt output but thought there would be an easier way since the properties are already marked to hide.

    ///ID of last user who modified the item.
    [ApiMember(Description="ID of last user who modified the item.", ExcludeInSchema=true)]
    public virtual int? Modifier { get; set; }


No there isn’t. The Exclude In Schema is for metadata like Open API, you can ignore them from DTOs by annotating the rest of your properties with DataContract/DataMember attributes. There’s no provision to dynamically alter the generated code based on Request Type.