json_annotation 0.2.7+1 copy "json_annotation: ^0.2.7+1" to clipboard
json_annotation: ^0.2.7+1 copied to clipboard

outdatedDart 1 only

Classes and helper functions that support JSON code generation via the `json_serializable` package.

0.2.7+1 #

  • Small improvement to UnrecognizedKeysException.message output and documentation comments.

0.2.7 #

  • Added JsonSerializable.disallowUnrecognizedKeys.
    • Added a helper function to support this option. This function starts with a $ and should only be referenced by generated code. It is not meant for direct use.
    • Added UnrecognizedKeysException for reporting errors.

0.2.6 #

  • CheckedFromJsonException

    • Added a public constructor to support hand-written JSON decoding logic.
    • The message property is now String (instead of Object).
  • Added JsonKey.defaultValue.

  • Added helpers for deserialization of enum values. These functions starting with $ are referenced by generated code. They are not meant for direct use.

0.2.5 #

  • Added CheckedFromJsonException which is thrown by code generated when checked is enabled in json_serializable.

  • Added functions to support the checked generation option. These functions starting with $ are referenced by generated code. They are not meant for direct use.

0.2.4 #

  • Added fromJson and toJson fields to JsonKey class.

0.2.3 #

  • Added ignore field to JsonKey class annotation

0.2.2 #

  • Added a helper class – $JsonMapWrapper – and helper functions – $wrapMap, $wrapMapHandleNull, $wrapList, and $wrapListHandleNull – to support the useWrappers option added to JsonSerializableGenerator in v0.3.0 of package:json_serializable.

0.2.1 #

  • JsonSerializable class annotation
    • Added nullable field.
    • Fixed doc comment.

0.2.0 #

  • Moved annotation classes for JsonSerializable and JsonLiteral.
1.15k
likes
0
points
5.69M
downloads

Publisher

verified publishergoogle.dev

Weekly Downloads

Classes and helper functions that support JSON code generation via the `json_serializable` package.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on json_annotation