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.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.
- 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
message
property is nowString
(instead ofObject
).
-
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 whenchecked
is enabled injson_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
andtoJson
fields toJsonKey
class.
0.2.3 #
- Added
ignore
field toJsonKey
class annotation
0.2.2 #
- Added a helper class –
$JsonMapWrapper
– and helper functions –$wrapMap
,$wrapMapHandleNull
,$wrapList
, and$wrapListHandleNull
– to support theuseWrappers
option added toJsonSerializableGenerator
inv0.3.0
ofpackage:json_serializable
.
0.2.1 #
JsonSerializable
class annotation- Added
nullable
field. - Fixed doc comment.
- Added
0.2.0 #
- Moved annotation classes for
JsonSerializable
andJsonLiteral
.