google / google/json_serializable.dart
[Question/Feature] how set converter globally and override builtin
Open
pkg:json_serializable
Type: enhancement
- Dominant language
- Dart
- Stars
- 1.6k
- Forks
- 461
- Avg merge
- 45m
- Merged PRs (30d)
- 1
Description
How can I set a converter globally to replace the builtin datetime for example?
this does not appear in the documentation
https://pub.dev/packages/json_serializable
replace the datetime converter with a custom one globally for all classes
Contributor guide
Assessment
This issue has not been assessed yet.