json_file_generator 0.0.2
json_file_generator: ^0.0.2 copied to clipboard
It generates json file from static const string variables declared in .dart file. The generated file i.e strings.json could be used by mojito.global [Translation Management System(TMS)]
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add json_file_generatorThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
json_file_generator: ^0.0.2Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:json_file_generator/json_file_generator.dart';