custom_mapper 0.0.9
custom_mapper: ^0.0.9 copied to clipboard
A powerful code generation package for creating type-safe mappers between domain objects and data transfer objects (DTOs) in Dart and Flutter applications.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add custom_mapperWith Flutter:
$ flutter pub add custom_mapperThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
custom_mapper: ^0.0.9Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:custom_mapper/custom_mapper.dart';