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

模型转字典,出现问题了 #846

Open
kedu opened this issue Oct 28, 2022 · 2 comments
Open

模型转字典,出现问题了 #846

kedu opened this issue Oct 28, 2022 · 2 comments

Comments

@kedu
Copy link

kedu commented Oct 28, 2022

就是我的模型里面是一个子模型,但是实际的模型实体类这个子模型是一个数组,现在转出来就不是json了。发现在这里加个判断就好了。if (!type.isFromFoundation && propertyClass),加上![value isKindOfClass:[NSArray class]].麻烦评估一下影响,谢谢

@wolfcon
Copy link
Collaborator

wolfcon commented Oct 28, 2022

demo?

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

3 participants
@wolfcon @kedu and others