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
135 stars 20 forks source link

MappableRecord.toMap includes metadata for nullable fields #194

Open chimon2000 opened 1 month ago

chimon2000 commented 1 month 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 3 weeks ago

Can you give me a reproducible example for this?