smartstruct icon indicating copy to clipboard operation
smartstruct copied to clipboard

Dart Code Generator for generating mapper classes

Results 17 smartstruct issues
Sort by recently updated
recently updated
newest added

Hi, this library looks great! What about implementing the `uses` feature in the `@Mapper` annotation? https://mapstruct.org/documentation/dev/reference/html/#_advanced_mapping_options Using this flag, developers can reduce the code duplication to map existing objects, by...

Hi and thank you for work I have to use other mapper inside my mapper for mapping nested element of my model to entity But currently I have to copy...

Hi, Given an example dto like the following, with serializable's toJson / fromJson methods ``` @JsonSerializable(explicitToJson: true) class ActivityAssetsDto { @JsonKey(name: 'image') final String imageUrl; const ActivityAssetsDto({this.imageUrl = ""}); factory...

After upgrade to Flutter 3.10, I excuted the build runner to process: `flutter pub run build_runner build --delete-conflicting-outputs` Output: `Invalid argument(s): Required input cycle for [{autoApply: AutoApply.dependents, import: package:smartstruct_generator/integrations/builder.dart, builderFactories:...

I am trying to generate mapper using this lb but not file is getting generated. Perhaps doesn't work with Realm Code: ``` import 'package:deckinspectors/src/models/project_model.dart'; import 'package:deckinspectors/src/models/realm/realm_schemas.dart'; import 'package:smartstruct/smartstruct.dart'; @Mapper() abstract...

Hello, I am going to apply smartstruct packages to my company projects. I am using freezed & injectable. I want you to add a new feature for smartstruct with injectable....

Hi. I`m using Smartstruct create mapper from UserResponse -> UserModel > Version > smartstruct: ^1.4.0 > smartstruct_generator: ^1.4.0 > freezed_annotation: ^2.2.0 > freezed: ^2.3.2 UserResponse class > `@freezed > class...

If `target` class contains getters, they are included in generated code. This PR change that. Fixes #84

Often classes contains getters without explicit setter (computed getter,...). In such case, generated code tries to assign value to them. Run smartstruct 1.4.0 against this mapper: ```dart class GetterTarget {...

This PR adds new parameter to Mapper() annotation to optionally turn off "Static mapping". In our project, we usually have "statci helper methods" to map the inner fields of complex...