[dotnet] [bidi] Avoid using JsonInclude attribute to include optional property for DTO #16413
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
User description
💥 What does this PR do?
Simplifies DTO definitions.
JsonInclude
attribute leads to messing.🔧 Implementation Notes
I am applied it everywhere is possible.
🔄 Types of changes
PR Type
Other
Description
Remove JsonInclude attributes from BiDi DTO classes
Convert properties to constructor parameters in records
Simplify serialization by using primary constructors
Update network event handlers with new signatures
Diagram Walkthrough
File Walkthrough
14 files
Convert Parent property to constructor parameter
Add Intercepts parameter to event handlers
Convert UserText property to constructor parameter
Convert DefaultValue property to constructor parameter
Add Intercepts parameter to constructor
Convert Intercepts property to constructor parameter
Add Intercepts parameter to constructor
Add Intercepts parameter to constructor
Update intercepted event constructors with Intercepts
Add Intercepts parameter to constructor
Convert AuthChallenges property to constructor parameter
Add Intercepts parameter to constructor
Convert all properties to constructor parameters
Convert SharedId and Value to constructor parameters