schultek / dart_mappable

Improved json serialization and data classes with full support for generics, inheritance, customization and more.
https://pub.dev/packages/dart_mappable
MIT License
164 stars 23 forks source link

feat: allow exclude fields from toJson and toMap #236

Open stact opened 2 months ago

stact commented 2 months ago

Please find this PR to allow exclude fields from toJson and toMap. I used the same logic as ignoreNull.

You will be able to add ignore: ['key1', 'key2']on MappableClass

I will need help for managing the tests.

Related to: #105