smart_snake 0.5.1
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(...)andsmartSnakeUserFromJsonString(...). - Request param generation with
@SmartField(withRequest: true). - Request-only fields with
requestOnly. - Conditional request fields with
condition. skipIfNullandskipIfEmptyfor cleaner request bodies.- Generated entity classes with
@SmartSnake(enableEntity: true). - Generated
toEntity()and entitycopyWith(). - Nested model, list, and
Map<String, CustomModel>support. - Custom field conversion through
fromJson,toJson, andtoEntity. - 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.1is stable enough for real testing, but the package is still pre-1.0. Minor API refinements may still happen before1.0.0.example/is intentionally lightweight; realistic usage lives undertest/so it can be validated automatically.
0.0.1 #
Initial experimental release.