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

[How to use] enum #156

Open
Microcrab opened this issue Jan 6, 2024 · 1 comment
Open

[How to use] enum #156

Microcrab opened this issue Jan 6, 2024 · 1 comment

Comments

@Microcrab
Copy link

Platforms

dart

Description

当模型中的属性定义为枚举时,byName方法的限制,json 中的数据是否只能是 string,而不能是 int。有没有其他的示例或思路。谢谢。
3

My code

2
1

Try do it

No response

@zhangruiyu
Copy link
Collaborator

emm
int就写int吧 目前没做这个的想法

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