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, I'm using the OpenApi Generator to generate my ApiClient and Backend Models with JSON Serialization and want to Auto Map the backend Model into my Entities, which declared as...

It would be very helpful to have annotations for [BeforeMapping](https://mapstruct.org/documentation/stable/api/org/mapstruct/BeforeMapping.html) & [AfterMapping](https://mapstruct.org/documentation/stable/api/org/mapstruct/AfterMapping.html) like the original mapstruct has. Example usage: ``` class Source {} class Target { Service _service; void setSevice(Service...

When I use this plugin , I can't fill the data straightly into the target object . I add the `isStraight` into `@Mapping` annotation and change the `_targetToSource` method ....

Question: How to realize this kind of mapping? ``` class Target { final String text1; final Sourse2 source2; Target(this.text1, this.source2); } class Source { final String text1; final int source2Id;...

Right now the first found constructor is used for populating data initially. ```dart ConstructorElement _chooseConstructor( ClassElement outputClass, ClassElement _) { return outputClass.constructors.where((element) => !element.isFactory).first; } ``` It would be nice,...

# Description Given the following classes: ```dart class Dog { final String breed; final int age; final String name; Dog(this.breed, this.age, this.name); } class DogModel { final String breed; final...

Hi teams, Please update the package. I am getting error below error. ``` D:\startup\app\demo_application dart run build_runner build Building package executable... (1.0s) Built build_runner:build_runner. [INFO] Generating build script completed, took...