json_parse_model 1.0.6 copy "json_parse_model: ^1.0.6" to clipboard
json_parse_model: ^1.0.6 copied to clipboard

A package for convert from json to model by http api

A package for convert from json to model by http api

Features #

A package for convert from json to model by http api 2023-12-21 16 38 44

Getting started #

Install #

flutter pub add json_parse_model -d
flutter pub add build_runner -d

Run build to generate json model. #

1. Used as Package #

if you add json2model.yaml to root path. then add host: <api host address> and token: <request authenticate token> for http request. run below command.

dart run build_runner build

if you don't add json2model.yaml run below command.

dart run build_runner build -d --define json_parse_model:json=host=<api host address> --define json_parse_model:json=token=<request authenticate token>

2. Used as Global Command line #

Activate Command line #

dart pub global activate json_parse_model

if you add json2model.yaml to root path. then add host: <api host address> and token: <request authenticate token> for http request. run below command.

json build

if you don't add json2model.yaml run below command.

json build -o <api host address> -t <request authenticate token>

Usage #

if you have download the repository at locat. as command line just run below command to global command.

dart pub global activate --source path <package path>

removed command line

dart pub global deactivate json_parse_model

Additional information #

A package for convert from json to model by http api

4
likes
0
pub points
19%
popularity

Publisher

verified publisherluozhenyong.com

A package for convert from json to model by http api

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

args, build, code_builder, dart_style, http, yaml

More

Packages that depend on json_parse_model