See the private variables here. The TrackingSettings object can be used as an example of how to do this.
Can you expand on this a little bit? Is the intent to change the signature of the Attachment Object so instead of accepting strings for content, type, filename, etc, it accepts Objects? I would worry about breaking existing usage of this, and it seems a bit overkill, so I'm not entirely sure that is what you meant.
Since there has been no activity on this issue since March 1, 2020, we are closing this issue. Please feel free to reopen or create a new issue if you still require assistance. Thank you!
Most helpful comment
Can you expand on this a little bit? Is the intent to change the signature of the Attachment Object so instead of accepting strings for content, type, filename, etc, it accepts Objects? I would worry about breaking existing usage of this, and it seems a bit overkill, so I'm not entirely sure that is what you meant.