Enhance field serialization control with @MappableField options#314
Open
itsarvinddev wants to merge 2 commits intoschultek:mainfrom
Open
Enhance field serialization control with @MappableField options#314itsarvinddev wants to merge 2 commits intoschultek:mainfrom
itsarvinddev wants to merge 2 commits intoschultek:mainfrom
Conversation
- Introduced `includeFromJson`, `includeToJson`, and `includeIfNull` parameters to the `@MappableField` annotation for better control over field inclusion during serialization and deserialization. - Updated relevant documentation to reflect these changes and provide usage examples. - Adjusted internal logic to respect these new parameters in the mapping process. - Improved formatting and consistency in the README and model documentation. This update enhances the flexibility of the `dart_mappable` library, allowing developers to fine-tune how fields are handled in JSON operations.
- Added `includeFromJson`, `includeToJson`, and `includeIfNull` parameters to various field definitions in mappers to improve control over serialization behavior. - Updated multiple mappers to utilize these new parameters, ensuring consistent handling of field inclusion during JSON operations. - Improved formatting and consistency in mapper definitions for better readability. This update enhances the flexibility of the `dart_mappable` library, allowing developers to fine-tune how fields are serialized and deserialized.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Enhance field serialization control with @MappableField options
includeFromJson,includeToJson, andincludeIfNullparameters to the@MappableFieldannotation for better control over field inclusion during serialization and deserialization.This update enhances the flexibility of the
dart_mappablelibrary, allowing developers to fine-tune how fields are handled in JSON operations. #105