dart_mapper_generator 1.0.1 copy "dart_mapper_generator: ^1.0.1" to clipboard
dart_mapper_generator: ^1.0.1 copied to clipboard

Code generator for dart_mapper. Produces mapping implementations at compile time via build_runner.

example/example.dart

/*
 * Copyright (c) 2026 MyLittleSuite
 *
 * Permission is hereby granted, free of charge, to any person
 * obtaining a copy of this software and associated documentation
 * files (the "Software"), to deal in the Software without
 * restriction, including without limitation the rights to use,
 * copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following
 * conditions:
 *
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 * OTHER DEALINGS IN THE SOFTWARE.
 */

// dart_mapper_generator is a build-time code generator — it has no runtime API.
// Add it to your dev_dependencies and configure build.yaml as shown below.
//
// pubspec.yaml (dev_dependencies):
//   dart_mapper_generator: ^1.0.0
//   build_runner: ^2.4.8
//
// build.yaml:
//   targets:
//     $default:
//       builders:
//         dart_mapper_generator:dart_mapper_builder:
//           enabled: true
//
// Then run:
//   dart run build_runner build

void main() {
  print('dart_mapper_generator is a build-time tool.');
  print('See https://pub.dev/packages/dart_mapper for usage.');
}
0
likes
150
points
313
downloads

Documentation

API reference

Publisher

verified publishermylittlesuite.com

Weekly Downloads

Code generator for dart_mapper. Produces mapping implementations at compile time via build_runner.

Homepage
Repository (GitHub)
View/report issues

Topics

#code-generation #mapping #build-runner #source-gen

License

MIT (license)

Dependencies

analyzer, build, code_builder, dart_mapper, dart_style, source_gen, strings

More

Packages that depend on dart_mapper_generator