libjson2builtvalue 0.2.2 copy "libjson2builtvalue: ^0.2.2" to clipboard
libjson2builtvalue: ^0.2.2 copied to clipboard

Generates Dart built_value classes from given JSON. Based on https://github.com/charafau/json2builtvalue

example/libjson2builtvalue_example.dart

import 'package:libjson2builtvalue/libjson2builtvalue.dart';

main() {
  // Initialize Parser
  var parser = Parser(); 
  // Sample JSON data
  var json = """{
  "userId": 1,
  "id": 1,
  "title": "delectus aut autem",
  "completed": false
}""";
  // Parse JSON with root class name.
  var parsed = parser.parse(json, 'todo');
  print(parsed);
}
0
likes
30
pub points
0%
popularity

Publisher

unverified uploader

Generates Dart built_value classes from given JSON. Based on https://github.com/charafau/json2builtvalue

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

built_collection, code_builder, dart_style, recase, tuple

More

Packages that depend on libjson2builtvalue