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

MappableRecord.toMap includes metadata for nullable fields #194

Closed chimon2000 closed 3 months ago

chimon2000 commented 6 months ago

When attempting to use toMap I noticed that my API endpoints are failing. This is because the endpoints reject the additional _type that is injected into the map as the result of defining a record with nullable fields.

schultek commented 5 months ago

Can you give me a reproducible example for this?