object_serializer 0.3.7 copy "object_serializer: ^0.3.7" to clipboard
object_serializer: ^0.3.7 copied to clipboard

outdated

A serializer (with caching support) of any static (generic) complex data that can be represented as simpler data.

0.3.7 #

  • Added the ability to build generic JSON serializers.

0.3.6 #

  • Added the ability to build JSON serializers from files *.json.yaml to *.json.dart.
  • The JsonSerializerGenerator now generates more informative error messages.

0.3.5 #

  • Breaking change: Now ObjectSerializer is serialized to the value List<int> and serialized from the value List<int>.

0.3.4 #

  • After the bug was fixed, new example files were generated.

0.3.2 #

  • Fixed bug in JsonSerializerGenerator.

0.3.1 #

  • Improved an example of using the code generator JsonSerializerGenerator.

0.3.0 #

  • Breaking change: Removed generator SimpleJsonSerializerGenerator;
  • Added code generator JsonSerializerGenerator. It generates pure JSON code, similar to what the generator from the json_serializable package generates. It also supports generating custom serializers for non-serializable types (like BigInt, DateTime, Duration, Uri, etc.).

0.2.0 #

  • Breaking change in SimpleJsonSerializerGenerator. To enhance the generation of classes and enumerations, fields and values should now be located under attributes fields and values, respectively.
  • Added the ability to specify a superclass (extends) for the class.
  • Added the ability to specify custom serialization functions for class fields (deserialize, serialize).

0.1.8 #

  • Added code generation example to README.md file.

0.1.7 #

  • Fixed bug in helper function serialize.
  • Added the ability to specify default values for fields.

0.1.6 #

  • Added small code fix.

0.1.5 #

  • Improved simple code generator SimpleJsonSerializerGenerator.
  • Improved an example of using the code generator SimpleJsonSerializerGenerator.

0.1.4 #

  • Added simple code generator SimpleJsonSerializerGenerator.
  • Added an example of using the code generator SimpleJsonSerializerGenerator.

0.1.3 #

  • Added JsonSerializer serializer.

0.1.2 #

  • Improved serialization performance by 30%. It's about the algorithm for finding a serializer for an object. In the case where the type of the object (by type argument) was known at the time serialization was started, finding a serializer for the this type (using a lookup table) would be faster than searching through all serializers, testing the object in each serializer (canSerialize(Object? object) => object is T). The more types are used for serialization, the more noticeable will be the difference in serialization speed with the previous version.

0.1.1 #

  • Simplified example code.

0.1.0 #

  • Initial release
3
likes
100
points
14
downloads

Publisher

unverified uploader

Weekly Downloads

A serializer (with caching support) of any static (generic) complex data that can be represented as simpler data.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

build, code_builder, dart_style, yaml

More

Packages that depend on object_serializer