hiranthaR / Json-to-Dart-Model

Json to Dart Model extension can convert JSON objects into Dart data classes. It supports pure Dart class conversion, Flutter-recommended JSON serialization using annotations, Freezed support, Effective Dart:Style, and many more features. Currently, it has more than 135,000 installs.
https://marketplace.visualstudio.com/items?itemName=hirantha.json-to-dart
MIT License
93 stars 17 forks source link

[BUG] <Command failed: cscript /Nologo c:\Users\\.vscode\extensions\hirantha.json-to-dart-3.5.0\node_modul> #79

Closed anilghimire133 closed 2 years ago

anilghimire133 commented 2 years ago

Is there an existing issue for this?

Current Behavior

No response

Expected Behavior

Generate JSON to dart class from JSON file.

Steps To Reproduce

No response

Version

v3.5.3

Relevant JSON syntax

{
    "status": 200,
    "message": "Profile Updated Successfully.",
    "response": {
        "help_intro": 1
    }
}

Anything else?

No response

anilghimire133 commented 2 years ago

image

iamarnas commented 2 years ago

@anilghimire133 Hi 👋

Can you describe with more detail? Which method you use, which OS you use?

It happens with all methods?

anilghimire133 commented 2 years ago

When I copied the JSON file and generated the model JSON to dart. It just create a folder for class and couldn't create a class for JSON to dart? I am using windows 10.

iamarnas commented 2 years ago

@anilghimire133 Hi 👋

This error comes from copy-paste dependency. I have updated to the latest version. You can update to the latest version of the extension and try if still throws an error.

anilghimire133 commented 2 years ago

image I Updated to the latest version. The same error comes.

iamarnas commented 2 years ago

@anilghimire133 Hi

Can you test the latest version 3.5.5? For me, it works without problems on Windows 10 :)

anilghimire133 commented 2 years ago

hi, @iamarnas Thank you so much it worked. image