google / google/json_serializable.dart

[Question/Feature] how set converter globally and override builtin

Open
#1,272 4 comments 13 reactions 0 assignees View on GitHub
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

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.