crystallis 0.0.3 copy "crystallis: ^0.0.3" to clipboard
crystallis: ^0.0.3 copied to clipboard

Data class codegen w/ validation & runtime metadata for Dart

0.0.3 #

  • Implemented serialization!
    • Per-field @Serializer annotation to customize de/serialization
    • Built-in support for primitive types, lists, maps, and nested Crystallis data classes
    • serialize method to convert to JSON-compatible Map<String, dynamic>
    • Generates a deserialize constructor to create instances from Map<String, dynamic> (optional, on by default)
  • Added copyFrom method to copy compatible fields between different data classes

0.0.2 #

  • Implemented generation for toString, ==, and hashCode methods (optional, on by default)
  • Added useDeepEquality option to control deep equality checks for collections (off by default)
  • Made copyWith method generation optional (on by default)
  • Added useDeepCopy option to control deep copying of collections in copyWith (off by default)
  • Added export for @immutable from package:meta

0.0.1 #

Initial release.

0
likes
160
points
322
downloads

Publisher

unverified uploader

Weekly Downloads

Data class codegen w/ validation & runtime metadata for Dart

Repository (GitHub)
View/report issues

Documentation

API reference

License

MPL-2.0 (license)

Dependencies

collection, meta

More

Packages that depend on crystallis