pkg:json - Support DateTime attributes #56175
Labels
area-pkg
Used for miscellaneous pkg/ packages not associated with specific area- teams.
pkg-json
The json macro package
type-enhancement
A request for a change that isn't a bug
Attempting to use a
DateTime
attribute within any@JsonCodable()
annotated class throws an unsupported error. DateTime is a commonly used type in dart and other languages to represent timestamps for creation data points etc.Consider the code:
It throws the following errors:
If supporting DateTime is not within the scope of this package, can you suggest a possible hack or workaround?
The text was updated successfully, but these errors were encountered: