json_config_generator 0.1.6 copy "json_config_generator: ^0.1.6" to clipboard
json_config_generator: ^0.1.6 copied to clipboard

Configuration generator from json files. Transform json file in a useful class

example/README.md

import 'package:json_config_annotation/json_config_annotation.dart';
import 'dart:convert';
import 'package:flutter/services.dart';

part 'config.g.dart'; //{dart file name}.g.dart

@Configuration(
  environmentEnumName: 'Env',
  environments:[
    Environment(name:'dev', path:'assets/config/dev.json'),
    Environment(name:'prd', path:'assets/config/prd.json'),
  ],
)
class $Config{}
7
likes
140
points
52
downloads

Publisher

unverified uploader

Weekly Downloads

Configuration generator from json files. Transform json file in a useful class

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

analyzer, build, build_config, built_collection, code_builder, dart_style, json_config_annotation, recase, source_gen

More

Packages that depend on json_config_generator