You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
This issue is related to issue #51.
I am not sure if the behavior I am expecting is actually the expected behavior. Looking at issue #51 lets me believe that it is.
When mapping an instance of a class Foo with a private property _foo that is being accessed via getter and setter to class FooDto that has a simple property foo, the mapping is done correctly. Mapping back from FooDto to Foo does not work with the @AutoMap() annotation, though.
Describe the bug
This issue is related to issue #51.
I am not sure if the behavior I am expecting is actually the expected behavior. Looking at issue #51 lets me believe that it is.
When mapping an instance of a class
Foo
with a private property_foo
that is being accessed via getter and setter to classFooDto
that has a simple propertyfoo
, the mapping is done correctly. Mapping back fromFooDto
toFoo
does not work with the@AutoMap()
annotation, though.Models/DTOs
Mapping Configuration
To Reproduce
Expected behavior
Property
foo2._foo
is set to1337
.Actual behavior
Property
foo2._foo
is set tonull
.Minimal running example
https://stackblitz.com/edit/typescript-4jqllg?devtoolsheight=33&file=index.ts
The text was updated successfully, but these errors were encountered: