json_annotation 0.2.7+1
json_annotation: ^0.2.7+1 copied to clipboard
Classes and helper functions that support JSON code generation via the `json_serializable` package.
0.2.7+1 #
- Small improvement to
UnrecognizedKeysException.messageoutput 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
UnrecognizedKeysExceptionfor reporting errors.
- Added a helper function to support this option. This function starts with a
0.2.6 #
-
CheckedFromJsonException- Added a public constructor to support hand-written JSON decoding logic.
- The
messageproperty is nowString(instead ofObject).
-
Added
JsonKey.defaultValue. -
Added helpers for deserialization of
enumvalues. These functions starting with$are referenced by generated code. They are not meant for direct use.
0.2.5 #
-
Added
CheckedFromJsonExceptionwhich is thrown by code generated whencheckedis enabled injson_serializable. -
Added functions to support the
checkedgeneration option. These functions starting with$are referenced by generated code. They are not meant for direct use.
0.2.4 #
- Added
fromJsonandtoJsonfields toJsonKeyclass.
0.2.3 #
- Added
ignorefield toJsonKeyclass annotation
0.2.2 #
- Added a helper class –
$JsonMapWrapper– and helper functions –$wrapMap,$wrapMapHandleNull,$wrapList, and$wrapListHandleNull– to support theuseWrappersoption added toJsonSerializableGeneratorinv0.3.0ofpackage:json_serializable.
0.2.1 #
JsonSerializableclass annotation- Added
nullablefield. - Fixed doc comment.
- Added
0.2.0 #
- Moved annotation classes for
JsonSerializableandJsonLiteral.