JSON to Dart Model - Enhanced Fork
From JSON to Dart Advanced - Enhanced Fork
🚀 What's New in This Fork
This enhanced version builds upon the original project with several key improvements:
✨ Enhanced Freezed Support
- Improved Freezed Syntax: Fixed formatting to follow proper Freezed conventions
- Better Abstract Class Generation: Freezed classes now properly generate with
abstract keyword by default
- Optimized Code Structure: Cleaner, more maintainable code generation for Freezed models
🔧 Technical Improvements
- Updated Dependencies: Latest TypeScript and VS Code API compatibility
- Bug Fixes: Resolved various edge cases and formatting issues
- Performance Optimizations: Faster JSON parsing and code generation
- Better Error Handling: More robust error messages and validation
📱 Developer Experience
- Enhanced IntelliSense: Better code completion and suggestions
- Improved Formatting: More consistent and readable generated code
- Better Documentation: Comprehensive examples and usage guides
Installation
- Open VS Code
- Go to Extensions (Ctrl+Shift+X)
- Search for "Json to Dart Model" by
kingace2056
- Click Install
Features
- Convert JSON from clipboard to Dart model classes
- Convert JSON from selection to Dart model classes
- Support for Freezed and JSON Serializable code generation
- Null safety support
- Effective Dart style compliance
- Enhanced file naming options
- Context menu support
How to Use
- Copy a valid JSON
- Press
Ctrl + Shift + P
- Search for "Convert From Clipboard"
- Provide class name and location
- Choose your generation options
License
Distributed under the MIT License.
Acknowledgments
This project is inspired by and built upon the excellent work of hiranthaR's Json-to-Dart-Model.
| |