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

outdated

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

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
0
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

License

unknown (license)

Dependencies

code_builder, dart_style

More

Packages that depend on object_serializer