Generates Dart classes from JSON.
pub global activate json2dart
From the command-line:
json2dart foo.json >> foo.dart
json2dart --owl bar.json >> bar.dart # Generate `package:owl_codegen` metadata as well
json2dart -c ArbitraryClassName baz.json >> arbitrary.dart
This package also supports a package:build
builder in package:json2dart/builder.dart
.