Skip to content
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

Closed
dJani97 opened this issue Feb 10, 2022 · 2 comments · Fixed by #338
Closed

[FEATURE] implement toString for models #340

dJani97 opened this issue Feb 10, 2022 · 2 comments · Fixed by #338
Assignees
Labels
enhancement New feature or request

Comments

@dJani97
Copy link

dJani97 commented Feb 10, 2022

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.

@dJani97 dJani97 added the enhancement New feature or request label Feb 10, 2022
@Vovanella95
Copy link
Collaborator

Hi @dJani97 actually good idea!

@Vovanella95
Copy link
Collaborator

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
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants