dto_logger 2.1.1
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_loggerWith Flutter:
$ flutter pub add dto_loggerThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
dto_logger: ^2.1.1Alternatively, 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';