smotastic / smartstruct

Dart Code Generator for generating mapper classes
35 stars 20 forks source link

add the fill data straightly way #65

Open SkyeVaccu opened 2 years ago

SkyeVaccu commented 2 years ago

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 . I just change the implement way , not to change the content. So it has created the all previous example successfully after my test.

It makes we can straightly fill the data into the target as the field , we don't need to package the parameter as the function or bean when we are in the easy situation. The example is the the dog_example folder.