Compatibility with json_serializable
Open
question
- Dominant language
- Dart
- Stars
- 195
- Forks
- 25
- PR merge metrics
- No merged PRs in 30d
Description
Hi, thank you for your work on `tuple`!
Is there a recommended way to use `tuple` together with `json_serializable`?
For example, if I want to automatically serialize a class that looks like this:
```dart
@JsonSerializable(nullable: false)
class Person {
final String firstName;
final String lastName;
final Tuple2 myTuple;
Person({this.firstName, this.lastName, this.myTuple});
factory Person.fromJson(Map json) => _$PersonFromJson(json);
Map toJson() => _$PersonToJson(this);
}
```
Contributor guide
Assessment
This issue has not been assessed yet.