MCPcopy Index your code
hub / github.com/chunlee-thong/dart-quicktype

github.com/chunlee-thong/dart-quicktype @v3.3.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v3.3.0 ↗ · + Follow
1,638 symbols 5,535 edges 26 files 0 documented · 0% updated 2y ago★ 622 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Dart QuickType

version: 3.1.0

A custom implemenation of JSON to Dart model class from QuickType.

Netlify Status

Site variation

  • https://dart-quicktype.netlify.app/
  • https://dart-quicktype-2.netlify.app/
  • https://dart-quicktype-3.netlify.app/

This project is configure to fit my use case only so the default behavior will be:

  • All fields are final
  • All fields are required
  • Has an option to generate toJSON,copyWith and toString
  • support Equatable and JsonSerialize
  • No freezed or hive

Type setting

When Dart class is generated from json, nullable or non-nullable field are define below.

Type Nullable default value
String setting ""
bool setting false
int setting 0
double setting 0
Array never []
Object always null
DateTime always null
  • Array can never be null
  • Object and DateTime always nullable
  • Other types can configure with checkbox setting

Extension points exported contracts — how you extend this code

SettingType (Interface)
(no doc)
app/app/store/setting.store.tsx
History (Interface)
(no doc)
app/app/store/history.store.tsx
Project (Interface)
(no doc)
app/app/store/history.store.tsx
HistoryState (Interface)
(no doc)
app/app/store/history.store.tsx
GeneratorState (Interface)
(no doc)
app/app/store/generator.store.tsx

Core symbols most depended-on inside this repo

emitLine
called by 1014
front-end/quicktype.js
n
called by 685
front-end/quicktype.js
push
called by 503
front-end/quicktype.js
ensureBlankLine
called by 300
front-end/quicktype.js
get
called by 171
front-end/quicktype.js
indent
called by 143
front-end/quicktype.js
set
called by 128
front-end/quicktype.js
u
called by 122
front-end/quicktype.js

Shape

Method 1,418
Function 142
Class 73
Interface 5

Languages

TypeScript100%

Modules by API surface

front-end/quicktype.js1,565 symbols
app/app/generator/custom_dart_renderer.ts41 symbols
front-end/script/app.js9 symbols
app/app/store/history.store.tsx4 symbols
front-end/script/history.js2 symbols
app/app/components/history.tsx2 symbols
app/app/store/setting.store.tsx1 symbols
app/app/store/generator.store.tsx1 symbols
app/app/page.tsx1 symbols
app/app/layout.tsx1 symbols
app/app/generator/test.ts1 symbols
app/app/generator/index.ts1 symbols

For agents

$ claude mcp add dart-quicktype \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page