-
Notifications
You must be signed in to change notification settings - Fork 403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added createJsonKeys #1401
Added createJsonKeys #1401
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like you're missing a dependency override in json_serializable |
@ChreSyr – I landed some fixes – take a look! |
@@ -1,6 +1,8 @@ | |||
## 4.8.2-wip | |||
|
|||
- Require Dart 3.0 | |||
- Added `JsonSerializable(createJsonKeys: true)`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be 4.9.0
since we're adding new features!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto with json_serial. I'll do it. Just FYI for future.
} | ||
|
||
typedef ModelJsonKeys = _$ModelJsonKeys; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Smart, i like the idea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ChreSyr would be really nice to have this auto generated inside json_keys_example.g.dart
above the generated ModelJsonKeys
class
Thanks @kevmoo for your help and work ! It was my first experience in open-source contribution, I will definitely continue. |
See #1400