Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reverse transformation possible? #39

Open
saumilsdk opened this issue Apr 2, 2019 · 5 comments
Open

reverse transformation possible? #39

saumilsdk opened this issue Apr 2, 2019 · 5 comments

Comments

@saumilsdk
Copy link

Once transformed from one object to another, can i get reverse transform back to original with same variables?

@saumilsdk
Copy link
Author

no updates on this repo?

@bozzltron
Copy link
Owner

Reversing the transform back to its original state doesn't seem valuable because the original state is what is passed into the transform. You already have it.

@saumilsdk
Copy link
Author

This is very much required for us where we take one type of object and map it to another to save it. And when we are receiving it back, we have to transform it back to original where we don't know the original state.

@saumilsdk
Copy link
Author

Basically serialization and deserialization of to/from json objects.

@bozzltron
Copy link
Owner

There is no built in way to reverse. You will need to write two maps. One for initial conversion and the second for reversal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants