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

Support for dynamic object mapping #1041

Open
TimothyMakkison opened this issue Dec 28, 2023 · 0 comments
Open

Support for dynamic object mapping #1041

TimothyMakkison opened this issue Dec 28, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@TimothyMakkison
Copy link
Collaborator

TimothyMakkison commented Dec 28, 2023

Similarly to Automapper, Mapperly should support mapping objects and Dictionary<string, object> to and from dynamic types.

Supporting DeepClone may be tricky, plus should we assume that all dynamic types are ExpandoObject

public static partial Dog ToDog(dynamic src) // construct dog and access relevant types from dynamic in a try catch block

public static partial dynamic ToDynamic(Dog src)
return (dyanmic)src // should an ExpandoObject be created and properties copied over?

See #1039

@latonz latonz added the enhancement New feature or request label Jan 23, 2024
@latonz latonz changed the title Add support for dynamic object mapping Support for dynamic object mapping May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants