automap
A lightweight object mapper for Dart, with support for automatic JSON-based mapping and manual mapping expressions.
0.1.0
leynier/automap-dart
What this package is like to depend on
Last release 9 days ago
15 Aug 2026
Too new to tell
only 2 release windows
Nearly every release is documented
notes for 4 of 4 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
4 releases · first in 2021
1 release in the last 12 months
see the full history below
Release timeline
4 releases · Apr 2021 to Aug 2026
2022
2023
2024
2025
2026
Releases
latest 4-
0.1.015 Aug 2026Release notes
Open source →Note: this release drops support for Dart 2 and contains breaking changes.
Breaking changes
- Require Dart 3 (
sdk: ^3.0.0). - Rename
MapDoesNotExistErrortoMapDoesNotExistExceptionandMapDuplicateErrortoMapDuplicateException; every exception now extends the new sealedAutoMapperExceptionbase class. AutoMappernow has a private constructor: use theAutoMapper.Isingleton, orAutoMapper.reset()to get a fresh instance.- Manual map expressions now receive
Map<String, dynamic>params instead of a rawMap. MapExceptionnow exposesmessage,causeandstackTracefields.AutoMapperModelis now anabstract interface class.
Features
- Add
AutoMapper.reset()to replace the singleton instance, useful to isolate state between tests. - Deprecate
addMapin favor ofaddAutoMap(kept as a delegating alias). - Wrap failures thrown by mapping expressions in
MapException, preserving the original cause and stack trace; programming errors (Error) are no longer masked and propagate untouched. - Validate the result of mapping expressions and throw a descriptive
MapExceptioninstead of failing with an opaque cast error. - Throw a descriptive
MapDoesNotExistExceptionwhen an auto map exists but the source does not implementAutoMapperModel.
Maintenance
- Migrate from the discontinued
lintpackage topackage:lintswithstrict-casts,strict-raw-typesandstrict-inference. - Add a full test suite and GitHub Actions CI and release workflows.
- Remove the stale Flutter
.metadataartifact.
- Require Dart 3 (
-
0.0.324 Apr 2021 -
0.0.223 Apr 2021 -
0.0.123 Apr 2021