google / google/json_serializable.dart

How can I make it ignore "setter"?

Open
#1,399 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
1.6k
Forks
461
Avg merge
45m
Merged PRs (30d)
1

Description

Hi,

Is there any way to make it ignore setters?

Currently, the only workaround that I found is to set:
`@JsonSerializable(ignoreUnannotated: true)`

But it forces to add `@JsonKey()` above any field which is pretty annoying.

Thanks.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.