Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>dz_json-to-dart-generatorNew to Visual Studio Code? Get it now.
dz_json-to-dart-generator

dz_json-to-dart-generator

Nishant Kumar Rai

|
17 installs
| (0) | Free
A VS Code extension that generates Dart models from complex JSON input instantly.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

DZ Dart Model Generator

A VS Code extension that generates Dart models from JSON input instantly.

Features

  • Convert JSON to Dart model with a single command.
  • Generates immutable models with copyWith, fromJson, equals, hashCode and toJson methods.
  • Supports nested JSON structures.
  • Optional Equatable support for easier equality checks.
  • Option to create pure Entities for Domain.

Installation

  1. Open VS Code.
  2. Go to Extensions (Cmd + Shift + X or Ctrl + Shift + X).
  3. Open terminal: code --install-extension nishantkumarrai.nishant

Usage

  1. Open a Dart file.
  2. Press Cmd + Shift + P (Mac) or Ctrl + Shift + P (Windows/Linux).
  3. Select "DZ JSON TO DART".
  4. Enter the model name and paste your JSON.
  5. Select yes if you want to use Equatable package for equality checks.
  6. Select yes if you want to generate Entity for your domain

Commands

Command Description
extension.generateDartModel Converts JSON to a Dart model

Requirements

  • Dart & Flutter installed.
  • VS Code v1.98.0 or later.
  • Equatable package (Optional if you want to use, but recommended)

Release Notes

0.0.2

  • Added support for Equatable package.
  • Option to generate Entity for domain.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft