json_to_dto 0.1.0-beta copy "json_to_dto: ^0.1.0-beta" to clipboard
json_to_dto: ^0.1.0-beta copied to clipboard

Convert JSON to Dart DTOs and back. Automate the model creation and the toJson and fromJson methods

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add json_to_dto

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  json_to_dto: ^0.1.0-beta

Alternatively, your editor might support dart pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:json_to_dto/json_to_dto.dart';
0
likes
90
points
23
downloads

Publisher

verified publisherchristianfindlay.com

Weekly Downloads

Convert JSON to Dart DTOs and back. Automate the model creation and the toJson and fromJson methods

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on json_to_dto