Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Json to Dart Model (Freeze issue Fix)New to Visual Studio Code? Get it now.
Json to Dart Model (Freeze issue Fix)

Json to Dart Model (Freeze issue Fix)

kingace2056

|
2 installs
| (0) | Free
Extension convert Json to Dart Model class, With support for Null-Safety, Freezed and Json Serializable.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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

  1. Open VS Code
  2. Go to Extensions (Ctrl+Shift+X)
  3. Search for "Json to Dart Model" by kingace2056
  4. 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

  1. Copy a valid JSON
  2. Press Ctrl + Shift + P
  3. Search for "Convert From Clipboard"
  4. Provide class name and location
  5. 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.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft