-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] implement toString for models #340
Labels
enhancement
New feature or request
Comments
Hi @dJani97 actually good idea! |
Vovanella95
pushed a commit
that referenced
this issue
Feb 10, 2022
Hi again @dJani97 Feel free to use prerelease version |
Vovanella95
added a commit
that referenced
this issue
Feb 11, 2022
* Fixed allof without parameters generation * Updatecd pubspec and changelog * Fixed analyser issues * Fixed issue 331 with List<List<User>> * Updatec pubspec and changelog. Removed not needed code * Updated gitignore * Added ability to generate files from urls * Improved code generator * Updated changelog and pubspec * Added main.dart * Removed generation of indexes file * Updated changelog and pubspec * Fixed parameter names generation * Revert "Removed generation of indexes file" This reverts commit 4ad82db. * Fixed generation of client index file * Fixed enum names generation * Updated pubspec and changelog * Added possibility to cache files * Issue #340 added generation of toString overrides * Updated dependencies and added lints * Updated lints * Fixed enum names generation from x-enumNames and x-enum-varnames * Fixed tests * Updated changelog and pubspec * Fixed tests Co-authored-by: uladzimir_paliukhovich <>
Vovanella95
added a commit
that referenced
this issue
Feb 15, 2022
* Fixed allof without parameters generation * Updatecd pubspec and changelog * Fixed analyser issues * Fixed issue 331 with List<List<User>> * Updatec pubspec and changelog. Removed not needed code * Updated gitignore * Added ability to generate files from urls * Improved code generator * Updated changelog and pubspec * Added main.dart * Removed generation of indexes file * Updated changelog and pubspec * Fixed parameter names generation * Revert "Removed generation of indexes file" This reverts commit 4ad82db. * Fixed generation of client index file * Fixed enum names generation * Updated pubspec and changelog * Added possibility to cache files * Issue #340 added generation of toString overrides * Updated dependencies and added lints * Updated lints * Fixed enum names generation from x-enumNames and x-enum-varnames * Fixed tests * Updated changelog and pubspec * Fixed tests * Added yaml support * Removed not needed const * Fixed multiple manipulations in map * Refactored example and fixes issues * Fixed some things * Fixed test Co-authored-by: uladzimir_paliukhovich <>
Vovanella95
added a commit
that referenced
this issue
Feb 15, 2022
* Fixed allof without parameters generation * Updatecd pubspec and changelog * Fixed analyser issues * Fixed issue 331 with List<List<User>> * Updatec pubspec and changelog. Removed not needed code * Updated gitignore * Added ability to generate files from urls * Improved code generator * Updated changelog and pubspec * Added main.dart * Removed generation of indexes file * Updated changelog and pubspec * Fixed parameter names generation * Revert "Removed generation of indexes file" This reverts commit 4ad82db. * Fixed generation of client index file * Fixed enum names generation * Updated pubspec and changelog * Added possibility to cache files * Issue #340 added generation of toString overrides * Updated dependencies and added lints * Updated lints * Fixed enum names generation from x-enumNames and x-enum-varnames * Fixed tests * Updated changelog and pubspec * Fixed tests * Added yaml support * Removed not needed const * Fixed multiple manipulations in map * Refactored example and fixes issues * Fixed some things * Fixed test * Updated example project * Updated pubspec and changelog Co-authored-by: uladzimir_paliukhovich <>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
A basic toString implementation on model classes would help with logging and debugging.
Currently toString is not overridden and
Instance of 'MyModel'
gets logged to the console.Describe the solution you'd like
A basic toString implementation similar to what the IDE can generate, or even a simple call like
@override String toString() => jsonEncode(this);
would help to make logging more verbose.The text was updated successfully, but these errors were encountered: