{"id":30067094,"url":"https://github.com/fluttercandies/json_to_dart_library","last_synced_at":"2026-04-02T02:53:35.728Z","repository":{"id":298898114,"uuid":"988754749","full_name":"fluttercandies/json_to_dart_library","owner":"fluttercandies","description":"json_to_dart_library","archived":false,"fork":false,"pushed_at":"2025-09-06T13:20:07.000Z","size":72,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-06T15:21:19.700Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-23T03:00:31.000Z","updated_at":"2025-09-06T13:20:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"215308a2-0392-43e8-b516-4aef23e92ea9","html_url":"https://github.com/fluttercandies/json_to_dart_library","commit_stats":null,"previous_names":["fluttercandies/json_to_dart_library"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fluttercandies/json_to_dart_library","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttercandies%2Fjson_to_dart_library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttercandies%2Fjson_to_dart_library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttercandies%2Fjson_to_dart_library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttercandies%2Fjson_to_dart_library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fluttercandies","download_url":"https://codeload.github.com/fluttercandies/json_to_dart_library/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttercandies%2Fjson_to_dart_library/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279021784,"owners_count":26087056,"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","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-08-08T08:07:37.880Z","updated_at":"2025-10-14T22:34:36.616Z","avatar_url":"https://github.com/fluttercandies.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"## The library to convert json to dart code\n\nThe library for [https://github.com/fluttercandies/JsonToDart/Flutter/json_to_dart](https://github.com/fluttercandies/JsonToDart/tree/master/Flutter/json_to_dart)\n\n## simple used\n\n```dart\nFuture\u003cvoid\u003e main(List\u003cString\u003e args) async {\n  DartObject? dartObject = await jsonToDartController.jsonToDartObject(\n    json: '''{\"data\":[{\"a\":1}],\"msg\":\"s\",\"code\":0}''',\n  );\n  var errors = jsonToDartController.getErrors();\n  if (errors.isNotEmpty) {\n    print('Errors found:');\n    for (var error in errors) {\n      print(error);\n    }\n    return;\n  }\n\n  if (dartObject != null) {\n    var dartCode = jsonToDartController.generateDartCode(dartObject);\n    File('output.dart').writeAsStringSync(dartCode!);\n    print('Dart code generated successfully:');\n  }\n}\n\n```\n \n## custom\n\nyou can define the config and DartObject/DartProperty to generate your own dart style code.\n\nyou can see bin/custom.dart to see more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluttercandies%2Fjson_to_dart_library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffluttercandies%2Fjson_to_dart_library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluttercandies%2Fjson_to_dart_library/lists"}