glideapps / quicktype

Generate types and converters from JSON, Schema, and GraphQL
https://app.quicktype.io
Apache License 2.0
11.76k stars 1.04k forks source link

[FEATURE]: Optional Parameters in Dart #2607

Open jonathanjohn47 opened 1 month ago

jonathanjohn47 commented 1 month ago

Currently, there doesn't seem a direct way to mark particular fields as optional fields (especially when converting from JSON to Dart). Please include a feature by which we can selectively mark certain fields optional. Currently, the only option in Dart we have is to make all properties optional, which is not desirable in all cases.

Thanks