/JsonToTypeScriptPlugin

Plugin to support JSON to TypeScript entity class conversion in Huawei DevEco Studio.

Primary LanguageKotlin

JsonToTypeScriptPlugin

Plugin to support JSON to TypeScript entity class conversion in Huawei DevEco Studio.

Download and install.

You can download the latest version of the JsonToTypeScriptClassPlugin-1.0.0.jar file from the Release page.

or install it by downloading the JsonToTypeScriptClassPlugin-1.0.0.jar file from the runJar directory in the root folder.

Download through the IntelliJ IDEA Plugin Marketplace: Go to Download.

Install Plugin

Usage

  • Step 1: Select the directory where you want to generate TypeScript entity classes.

  • Step 2: Right-click on the directory and select "Json To TypeScript Class" from the context menu.

  • Step 3: Enter the JSON string and the desired class name in the dialog box, then click OK.

Usage