Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Flutter JSON ModelNew to Visual Studio Code? Get it now.
Flutter JSON Model

Flutter JSON Model

Dev Deshan

|
2 installs
| (1) | Free
Generate Dart models from JSON with fromJson/toJson, nested models, arrays, and proper types.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Flutter JSON Model

Generate Dart model classes from JSON directly in VS Code with fromJson and toJson support. Handles nested objects, lists, and common types like int, double, String, bool, and DateTime. Works with copied JSON or JSON files.


Features

  • Convert JSON → Dart model in seconds
  • Handles nested objects and arrays
  • Supports int, double, String, bool, DateTime, List, and Map types
  • Copy the generated Dart model directly to clipboard for easy pasting
  • Choose between pasting JSON or selecting a JSON file
  • Informative messages confirm successful generation

Tip: You can copy JSON from anywhere, run the command, and your Dart model is ready to paste.


Requirements

  • VS Code >= 1.90
  • Node.js installed for compiling if you modify the extension

No additional dependencies required for end users.


Usage

  1. Open a JSON file or copy JSON content.
  2. Press Ctrl+Shift+P → Flutter JSON Model.
  3. Choose Paste JSON or Choose JSON File.
  4. Enter your desired Dart class name.
  5. The Dart model is copied to clipboard automatically.
  6. Paste anywhere in your Flutter project!

Extension Settings

This extension does not currently add configurable settings.


Known Issues

  • Arrays with mixed types may generate dynamic fields.
  • Root JSON as a list generates a single class based on the first element.

Release Notes

1.0.0

  • Initial release of Flutter JSON Model VS Code extension
  • Copy JSON or select JSON file, generate nested Dart models with fromJson/toJson

Following Extension Guidelines

Ensure you follow VS Code extension guidelines.


For more information

  • Visual Studio Code API
  • Markdown Syntax Reference

Enjoy generating Dart models effortlessly!

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