smartstruct_generator 1.2.4+1
smartstruct_generator: ^1.2.4+1 copied to clipboard
smartstruct - A dart bean mapper annotation processor - the easy nullsafe way!
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add smartstruct_generatorThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
smartstruct_generator: ^1.2.4+1Alternatively, your editor might support dart pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:smartstruct_generator/code_builders/assignment_builder.dart';
import 'package:smartstruct_generator/code_builders/class_builder.dart';
import 'package:smartstruct_generator/code_builders/method_builder.dart';
import 'package:smartstruct_generator/code_builders/parameter_copy.dart';
import 'package:smartstruct_generator/generators/mapper_generator.dart';
import 'package:smartstruct_generator/integrations/builder.dart';
import 'package:smartstruct_generator/mapper_config.dart';