smart_snake 0.5.1 copy "smart_snake: ^0.5.1" to clipboard
smart_snake: ^0.5.1 copied to clipboard

A Dart/Flutter code generator for clean architecture models, request params, generated entities, and JSON mapping.

Changelog #

All notable changes to smart_snake are documented in this file.

0.5.1 #

Pre-1.0 stable release.

This is the first version intended for real project testing. It focuses on the main Clean Architecture workflow: model parsing, request params, generated entities, entity copyWith, custom converters, nested models, and multipart request support.

Included #

  • JSON parsing and toJson() generation for annotated models.
  • Public generated helpers such as smartSnakeUserFromJson(...) and smartSnakeUserFromJsonString(...).
  • Request param generation with @SmartField(withRequest: true).
  • Request-only fields with requestOnly.
  • Conditional request fields with condition.
  • skipIfNull and skipIfEmpty for cleaner request bodies.
  • Generated entity classes with @SmartSnake(enableEntity: true).
  • Generated toEntity() and entity copyWith().
  • Nested model, list, and Map<String, CustomModel> support.
  • Custom field conversion through fromJson, toJson, and toEntity.
  • Client-agnostic multipart support with SmartSnakeMultipartBody.
  • Realistic test structure under test/ for model, remote, datasource, repository, request params, entity mapping, and multipart behavior.
  • Cleaner generator internals split into focused files for easier maintenance.
  • README support/feedback guidance and a commented donation section for future use.
  • Repository, issue tracker, package topics, and README badges for a cleaner pub.dev/GitHub landing page.

Notes #

  • 0.5.1 is stable enough for real testing, but the package is still pre-1.0. Minor API refinements may still happen before 1.0.0.
  • example/ is intentionally lightweight; realistic usage lives under test/ so it can be validated automatically.

0.0.1 #

Initial experimental release.

1
likes
150
points
15
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Dart/Flutter code generator for clean architecture models, request params, generated entities, and JSON mapping.

Repository (GitHub)
View/report issues

Topics

#codegen #json #clean-architecture #model-mapper #build-runner

License

MIT (license)

Dependencies

analyzer, build, json_annotation, source_gen

More

Packages that depend on smart_snake