json 0.20.4 copy "json: ^0.20.4" to clipboard
json: ^0.20.4 copied to clipboard

Easy encoding and decoding of JSON maps (maps of type `Map<String, Object?>`). Uses a macro that auto-generates a `fromJson` decoding constructor and a `toJson` encoding method.

0.20.4 #

  • Allow custom fromJson to have an arbitrary parameter type.

0.20.3 #

  • Add support for DateTime, serializing it to an ISO-8601 String.

0.20.2 #

  • Fix generated code syntax error when defining fields containing the dollar sign $ by using raw strings.
  • Remove vendored package workaround, require ^3.5.0-154 Dart SDK.

0.20.1 #

  • Vendor macro packages as workaround for analyzer issue.

0.20.0 #

  • Initial preview of JSON encoding and decoding with a JsonCodable macro.
92
likes
150
points
1.44k
downloads

Publisher

verified publisherlabs.dart.dev

Weekly Downloads

Easy encoding and decoding of JSON maps (maps of type `Map<String, Object?>`). Uses a macro that auto-generates a `fromJson` decoding constructor and a `toJson` encoding method.

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

macros

More

Packages that depend on json