google / json_serializable.dart

Generates utilities to aid in serializing to/from JSON.
https://pub.dev/packages/json_serializable
BSD 3-Clause "New" or "Revised" License
1.55k stars 395 forks source link

Support Dart 3 Record types #1314

Closed kevmoo closed 1 year ago

kevmoo commented 1 year ago

Closes https://github.com/google/json_serializable.dart/issues/1222

github-actions[bot] commented 1 year ago

Package publishing

Package Version Status Publish tag (post-merge)
package:json_serializable 6.7.0 ready to publish json_serializable-v6.7.0
package:json_annotation 4.8.1 already published at pub.dev
package:checked_yaml 2.0.3 already published at pub.dev

Documentation at https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.

kevmoo commented 1 year ago

The implementation is less than 200 lines. Most of this is auto-generated test code.

Dampfwalze commented 1 year ago

Are there examples or other documentation on how to serialize and deserialize records?

kevmoo commented 1 year ago

Just have to use records as properties/fields in a class and they will serialize.

On Tue, Jul 18, 2023 at 3:18 AM Dampfwalze @.***> wrote:

Are there examples or other documentation on how to serialize and deserialize records?

— Reply to this email directly, view it on GitHub https://github.com/google/json_serializable.dart/pull/1314#issuecomment-1639945416, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAEFCSTXY7DOU72II65M23XQZPGNANCNFSM6AAAAAAX6WJRIE . You are receiving this because you modified the open/close state.Message ID: @.***>