jsonize 1.4.1
jsonize: ^1.4.1 copied to clipboard
A JSON serialize class to convert 'to' and 'from' JSON format Enums, DateTime and any of your own classes.
1.4.1 #
- Added 'unknownEnumValue' parameter to 'registerEnum' to handle unrecognized json values
- Assigned default getter & setter to 'CloneField' instance
1.4.0 #
- Added 'enhanced enums' handling (new in dart 2.17 release) using the 'JsonizableEnum' interface.
1.3.0 #
- Added enum serialization via 'registerEnum'
- Added 'Clonable' interface to simplify the definition of a Jsonizable class.
- Modified the 'CallbackFunction' prototype by adding the object as last parameter
1.2.0 #
- Added 'convertCallback' to the 'toJson' and 'fromJson' methods to enable custom transformation of the object json representation.
1.1.0 #
- Changed the 'indent' from positional to named parameter in the 'toJson' method (this breaks compatibility with previous version).
- Now you can set a custom 'jsonClassToken' when convert to and from json.
- Now you can set a custom 'dtClassToken' (i.e. DateTime object class token) when convert to and from json.
- Now you can set a custom 'dateTimeFormat' (i.e. DateTimeFormat enum) to serialize DateTime objects in different ways with different precisions.
- Added JsonizeException class. Each possible exception thrown by jsonize package is of that type.
1.0.1 #
- Added examples.
1.0.0 #
- Initial version.