FLUTTER ECOSYSTEM

javiercbk/json_to_dart

JSON 문자열에서 Dart 클래스를 생성하는 라이브러리

json_to_dart 프로젝트 이미지
Stars
1.3천
Forks
381
최근 푸시(UTC)
2024. 4. 16.
프로젝트 상태
보관됨
Javier Lecuona GitHub avatar
GITHUB User

Javier Lecuona ↗

언어Dart

기술 주제

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 5 개

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

JSON to Dart

Build Status

Given a JSON string, this library will generate all the necessary Dart classes to parse and generate JSON.

This library is designed to generate Flutter friendly model classes following the flutter's doc recommendation.

Caveats

  • When an empty array is given, it will create a List. Such weird behaviour should warn the user that there is no data to extract.
  • Equal structures are not detected yet (Equal classes are going to be created over and over).
  • Properties named with funky names (like "!breaks", "|breaks", etc) or keyword (like "this", "break", "class", etc) will produce syntax errors.
  • Array of arrays are not supported:
[[{ "isThisSupported": false }]]
[{ "thisSupported": [{ "cool": true }] }]