{"id":19273029,"url":"https://github.com/fluttercandies/flutterjsonbeanfactory","last_synced_at":"2025-05-15T12:06:30.002Z","repository":{"id":37937999,"uuid":"163476233","full_name":"fluttercandies/FlutterJsonBeanFactory","owner":"fluttercandies","description":"What I do is generate dart beans based on json, as well as generics parameters and json build instances","archived":false,"fork":false,"pushed_at":"2025-03-20T03:41:26.000Z","size":97112,"stargazers_count":564,"open_issues_count":5,"forks_count":56,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-14T20:57:34.987Z","etag":null,"topics":["dart","flutter","flutterjson","json"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fluttercandies.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-12-29T04:38:15.000Z","updated_at":"2025-04-04T04:07:20.000Z","dependencies_parsed_at":"2023-02-18T05:01:00.838Z","dependency_job_id":"38305ef0-0ae8-4fe6-9897-9b007c4e5f50","html_url":"https://github.com/fluttercandies/FlutterJsonBeanFactory","commit_stats":null,"previous_names":[],"tags_count":36,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttercandies%2FFlutterJsonBeanFactory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttercandies%2FFlutterJsonBeanFactory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttercandies%2FFlutterJsonBeanFactory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttercandies%2FFlutterJsonBeanFactory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fluttercandies","download_url":"https://codeload.github.com/fluttercandies/FlutterJsonBeanFactory/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254337613,"owners_count":22054253,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dart","flutter","flutterjson","json"],"created_at":"2024-11-09T20:40:10.673Z","updated_at":"2025-05-15T12:06:24.989Z","avatar_url":"https://github.com/fluttercandies.png","language":"Kotlin","readme":"# FlutterJsonBeanFactory\n\nHi,Welcome to come to see me!\nWhat I do is generate dart beans based on json, as well as generics parameters and json build instances\n\nLanguage: English | [中文(qq群963752388)](https://juejin.cn/post/7030739002969817118/)\n\n打扰:我想找份flutter开发的工作,请问有没有大佬可以帮忙推荐一下,谢谢了,我的邮箱:157418979@qq.com,安卓ios都会撸,不接受做马甲包的工作\n打扰:顺便接flutter外包\n\n\n### Easy Use 插件交流群qq(963752388)\n\n![image](.github/beantojson_factory.gif)\n\n## Known issue\n\n- If \"No classes that inherit JsonConvert were found\" is displayed, delete the \". Idea \"directory under the project and\n  click\" invalidate Caches\"in your (Andorid Studio or IDEA) button to restart the IDE\n\n## Template ToDo list\n\n- [x] Support for instantiation through generics\n- [x] Support customized JSON parsing\n- [x] The supported types are: int double String datetime dynamic var, and List of the above types\n- [x] Two (and more)-dimensional array is supported (v4.5.6~)\n- [x] Support custom generated path\n\n\u003c!-- Plugin description --\u003e\n\n### Usage\n\n* 打扰:我想找份flutter开发的工作,请问有没有大佬可以帮忙推荐一下,谢谢了,我的邮箱:157418979@qq.com\n* \u003ckbd\u003eSettings/Preferences\u003c/kbd\u003e \u003e \u003ckbd\u003ePlugins\u003c/kbd\u003e \u003e \u003ckbd\u003eMarketplace\u003c/kbd\u003e \u003e \u003ckbd\u003eSearch for \"\n  FlutterJsonBeanFactory\"\u003c/kbd\u003e \u003e\n  \u003ckbd\u003eInstall Plugin\u003c/kbd\u003e\n* Restart your Develop tools\n* Modify in the YAML file of the Flutter project\n\n* Press shortcut key `alt ` + `j` for mac , right click on package -\u003e `New`-\u003e`Dart bean clas file from JSON`And Then you\n  will know how to use\n* If you change the fields in the class, just press the shortcut alt + j to regenerate the tojson and fromjson methods.\n  The generated method regenerates all helper classes and JsonConvert classes (the same as the shortcut alt + j) each\n  time an entity file is created in the generated/json directory.\n* If you need generic conversions in your network requests, use the JsonConvert.fromJsonAsT\u003cT\u003e method directly.\n* If no helper files are generated, you can delete the .idea directory and restart your idea\n* You can customize the JSON parsing scheme\n\n```dart\nimport 'generated/json/base/json_convert_content.dart';\n\nclass MyJsonConvert extends JsonConvert {\n  T? asT\u003cT extends Object?\u003e(dynamic value) {\n    try {\n      String type = T.toString();\n      if (type == \"DateTime\") {\n        return DateFormat(\"dd.MM.yyyy\").parse(value) as T;\n      } else {\n        return super.asT\u003cT\u003e(value);\n      }\n    } catch (e, stackTrace) {\n      print('asT\u003c$T\u003e $e $stackTrace');\n      return null;\n    }\n  }\n}\n\nFuture\u003cvoid\u003e main() async {\n  jsonConvert = MyJsonConvert();\n  runApp(Text(\"OK\"));\n}\n```\n\ncustom generated path-\u003e(pubspec.yaml)\n\n```yaml \nflutter_json:\n  generated_path: src/json/**\n```\n\n\u003c!-- Plugin description end --\u003e\n\n\n### 开源不易，觉得有用的话可以请作者喝杯冰可乐🥤\n\n\u003cimg src=\"https://github.com/fluttercandies/FlutterJsonBeanFactory/blob/master/wechat_pay.png\" width = \"300\" height = \"300\" alt=\"打赏\"/\u003e\n\n### 赞助列表(非常非常的感谢,仅记录此插件收到的打赏,承诺将收到的所有赞助用于购买可乐和赞助其他开源作者)\n\n\u003ctable\u003e\n  \u003cthead\u003e\n    \u003ctr\u003e\n      \u003cth style=\"width: 180px;\"\u003e\n          \u003csub\u003e名称\u003c/sub\u003e\u003cbr\u003e\n      \u003c/th\u003e\n      \u003cth style=\"width: 180px;\"\u003e\n          \u003csub\u003e金额\u003c/sub\u003e\u003cbr\u003e\n      \u003c/th\u003e\n      \u003cth  style=\"width: 180px;\"\u003e\n          \u003csub\u003e时间\u003c/sub\u003e\u003cbr\u003e\n      \u003c/th\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003cth style=\"width: 180px;\"\u003e\n          \u003csub\u003e微信:BeADre\u003c/sub\u003e\u003cbr\u003e\n      \u003c/th\u003e\n      \u003cth style=\"width: 180px;\"\u003e\n          \u003csub\u003e18.8元\u003c/sub\u003e\u003cbr\u003e\n      \u003c/th\u003e\n      \u003cth  style=\"width: 180px;\"\u003e\n          \u003csub\u003e2025年3月4日\u003c/sub\u003e\u003cbr\u003e\n      \u003c/th\u003e\n    \u003ctr\u003e\n    \u003ctr\u003e\n      \u003cth style=\"width: 180px;\"\u003e\n          \u003csub\u003e微信:大熊猫🐱\u003c/sub\u003e\u003cbr\u003e\n      \u003c/th\u003e\n      \u003cth style=\"width: 180px;\"\u003e\n          \u003csub\u003e20元\u003c/sub\u003e\u003cbr\u003e\n      \u003c/th\u003e\n      \u003cth  style=\"width: 180px;\"\u003e\n          \u003csub\u003e2024年4月3日\u003c/sub\u003e\u003cbr\u003e\n      \u003c/th\u003e\n    \u003ctr\u003e\n    \u003ctr\u003e\n      \u003cth style=\"width: 180px;\"\u003e\n          \u003csub\u003eqq:sunny\u003c/sub\u003e\u003cbr\u003e\n      \u003c/th\u003e\n      \u003cth style=\"width: 180px;\"\u003e\n          \u003csub\u003e10元\u003c/sub\u003e\u003cbr\u003e\n      \u003c/th\u003e\n      \u003cth  style=\"width: 180px;\"\u003e\n          \u003csub\u003e2023年12月21日\u003c/sub\u003e\u003cbr\u003e\n      \u003c/th\u003e\n    \u003ctr\u003e\n    \u003ctr\u003e\n      \u003cth style=\"width: 180px;\"\u003e\n          \u003csub\u003e微信:未知\u003c/sub\u003e\u003cbr\u003e\n      \u003c/th\u003e\n      \u003cth style=\"width: 180px;\"\u003e\n          \u003csub\u003e10元\u003c/sub\u003e\u003cbr\u003e\n      \u003c/th\u003e\n      \u003cth  style=\"width: 180px;\"\u003e\n          \u003csub\u003e2023年11月17日\u003c/sub\u003e\u003cbr\u003e\n      \u003c/th\u003e\n    \u003ctr\u003e\n      \u003cth style=\"width: 180px;\"\u003e\n          \u003csub\u003eQQ:郭嘉\u003c/sub\u003e\u003cbr\u003e\n      \u003c/th\u003e\n      \u003cth style=\"width: 180px;\"\u003e\n          \u003csub\u003e10元\u003c/sub\u003e\n      \u003c/th\u003e\n      \u003cth style=\"width: 180px;\"\u003e\n          \u003csub\u003e2023年09月12日\u003c/sub\u003e\n      \u003c/th\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003cth style=\"width: 180px;\"\u003e\n          \u003csub\u003eQQ:初一\u003c/sub\u003e\u003cbr\u003e\n      \u003c/th\u003e\n      \u003cth style=\"width: 180px;\"\u003e\n          \u003csub\u003e100元\u003c/sub\u003e\n      \u003c/th\u003e\n      \u003cth style=\"width: 180px;\"\u003e\n          \u003csub\u003e2023年08月15日\u003c/sub\u003e\n      \u003c/th\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003cth style=\"width: 180px;\"\u003e\n          \u003csub\u003eGithub:cr1992\u003c/sub\u003e\u003cbr\u003e\n      \u003c/th\u003e\n       \u003cth style=\"width: 180px;\"\u003e\n          \u003csub\u003e6.66元\u003c/sub\u003e\n      \u003c/th\u003e\n       \u003cth style=\"width: 180px;\"\u003e\n          \u003csub\u003e2023年08月4日\u003c/sub\u003e\n      \u003c/th\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n     \u003cth style=\"width: 180px;\"\u003e\n          \u003csub\u003eQQ:余军\u003c/sub\u003e\u003cbr\u003e\n      \u003c/th\u003e\n     \u003cth style=\"width: 180px;\"\u003e\n          \u003csub\u003e200元\u003c/sub\u003e\n      \u003c/th\u003e\n     \u003cth style=\"width: 180px;\"\u003e\n          \u003csub\u003e2022年12月\u003c/sub\u003e\n      \u003c/th\u003e\n    \u003c/tr\u003e\n\n  \u003c/thead\u003e\n\u003c/table\u003e\n\n### Find me useful ? :heart:\n\n* Support me by clicking the :star: button on the upper right of this page. :v:\n* Spread to others to let more people have a better develope expierience :heart:\n\n---\nThanks to [JetBrains](https://www.jetbrains.com/?from=fluttercandies) for allocating free open-source licenses for IDEs\nsuch as [IntelliJ IDEA](https://www.jetbrains.com/idea/?from=fluttercandies).\n\n[\u003cimg src=\".github/jetbrains-variant.png\" width=\"200\"/\u003e](https://www.jetbrains.com/?from=fluttercandies)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluttercandies%2Fflutterjsonbeanfactory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffluttercandies%2Fflutterjsonbeanfactory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluttercandies%2Fflutterjsonbeanfactory/lists"}