# javiercbk/json_to_dart

Library that generates dart classes from json strings

Repository: https://github.com/javiercbk/json_to_dart
Canonical: https://ross.abutalabs.com/products/json_to_dart
Homepage: https://javiercbk.github.io/json_to_dart/
Language: Dart
License: Unlicense
License Family: permissive
Topics: dart, json, flutter
Archived: true
Last push: 2024-04-16T09:40:49+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3057, "days_push": 869, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1335, forks 381 (observed 2026-08-28T04:04:25.251577+00:00)

## What it is
A Dart library that generates Dart model classes from JSON strings, following Flutter's recommended manual serialization pattern. It also ships as a web tool where users paste JSON and get Dart classes with private fields and copy support.

## Use cases
- generate dart classes from
- convert  response to dart model classes
- create flutter model classes for api
- to dart converter
- generate serializable dart classes from  string
- boilerplate-free  parsing in flutter

## When to choose
- you are building a Flutter or Dart app and need model classes for a known JSON schema
- you want classes following Flutter's dart:convert serialization recommendation
- you want a quick web tool to paste JSON and get Dart code

## When to avoid
- your JSON contains arrays of arrays, which are not supported
- your JSON keys use Dart keywords or special characters that break code generation
- you need runtime JSON parsing rather than generated static classes
- you need detection of duplicate/equal structures to avoid repeated classes

## Facets
- artifact type: library
- maturity: maintenance
- function: serialization, developer-tools
- domain: developer-tools, mobile-development, web-development
- platform: cross-platform
- tags: -to-dart, model-class-generator, flutter, code-generator, -serialization, code-generation, automation, web

## Member repositories
- javiercbk/json_to_dart (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:25.251577+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:44:22.626655+00:00, confidence not recorded.
  - readme: https://github.com/javiercbk/json_to_dart (fetched 2026-08-28T04:04:25.251577+00:00, sha 89589031b034)
  - homepage: https://javiercbk.github.io/json_to_dart/ (fetched 2026-08-29T12:03:36.952121+00:00, sha ee90cad157e1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
