dto_logger 2.1.1 copy "dto_logger: ^2.1.1" to clipboard
dto_logger: ^2.1.1 copied to clipboard

Debug-only logging and safe type coercion for JSON DTOs in Flutter/Dart. Generate classes from JSON, see nulls, missing keys, type mismatches and unused fields per model.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add dto_logger

With Flutter:

 $ flutter pub add dto_logger

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

dependencies:
  dto_logger: ^2.1.1

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

Import it

Now in your Dart code, you can use:

import 'package:dto_logger/dto_logger.dart';
15
likes
160
points
556
downloads
screenshot

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Debug-only logging and safe type coercion for JSON DTOs in Flutter/Dart. Generate classes from JSON, see nulls, missing keys, type mismatches and unused fields per model.

Repository (GitHub)
View/report issues

Topics

#json #logging #dto #serialization #debugging

License

MIT (license)

More

Packages that depend on dto_logger