# json2dart **Repository Path**: frontend_site/json2dart ## Basic Information - **Project Name**: json2dart - **Description**: json2dart - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-11-08 - **Last Updated**: 2021-11-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # json2dart ## Table of Contents - [Install](#install) - [Usage](#usage) ## Install ```sh npm install -g json2dart ``` ## Usage ### CLI ```sh $ dartGen --help Usage: json2dart [options] Options: -V, --version output the version number -o, --out output filename -d, --dir output dirname -c, --class output className --url input json schema from the url -h, --help display help for command Examples: $ dartGen --help $ dartGen ./src/data/dart.json -o movie.dart $ dartGen --url https://www.devio.org/io/flutter_app/json/home_page.json -d example -o index_model.dart $ dartGen ./src/data/dart.json -d example -o movie.dart -c MovieDart ``` ### NodeJS API ```js const alphaGenerate = require('json2dart'); const dart = alphaGenerate({/* Data object */}, 'nameClass'); ```