inferno 0.1.0 copy "inferno: ^0.1.0" to clipboard
inferno: ^0.1.0 copied to clipboard

Automatically create Dart classes that match the structure of your JSON files.

example/example.dart

import 'package:json_annotation/json_annotation.dart';
import 'package:inferno/annotations.dart';

part 'example.inferno.dart';
part 'example.g.dart';

@InferFromJsonFile(file: "json/example01.json")
typedef Example01 = InferredExample01;

@InferFromJsonFile(file: "json/example02.json")
typedef Example02 = InferredExample02;

@InferFromJsonFile(file: "json/example03.json")
typedef Example03 = InferredExample03;

@InferFromJsonFile(file: "json/example04.json")
typedef Example04 = InferredExample04;

@InferFromJsonFile(file: "json/example05.json")
typedef Example05 = InferredExample05;

@InferFromJsonFile(file: "json/example06.json")
typedef Example06 = InferredExample06;
6
likes
130
points
61
downloads

Publisher

verified publisherstvari.si

Weekly Downloads

Automatically create Dart classes that match the structure of your JSON files.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

analyzer, build, collection, json_annotation, json_serializable, source_gen

More

Packages that depend on inferno