FlutterJsonBeanFactory icon indicating copy to clipboard operation
FlutterJsonBeanFactory copied to clipboard

[How to use] enum

Open Microcrab opened this issue 1 year ago • 1 comments

Platforms

dart

Description

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

My code

2 1

Try do it

No response

Microcrab avatar Jan 06 '24 05:01 Microcrab

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

zhangruiyu avatar Jan 09 '24 07:01 zhangruiyu