A Dotnet App to create dart class from json, The dart class extends Serializable base class

Overview

JsonToDart

A Dotnet cross-platform App to create dart class from json, taking null-safety into consideration

The dart class extends Serializable base class

Here is the Serializable class code

import 'dart:convert';

abstract class Serializable {

  String serialize() {
    return json.encode(this.toMap());
  }

  void deserialize(String text) {
    this.fromMap(json.decode(text));
  }

  //abstract
  Map<String, dynamic> toMap();

  //abstract
  void fromMap(Map<String, dynamic> map);
}

How to use

Windows

For windows the app is available as Windows Forms app, and as console app,

for the console app you can provide your json input via a file, the clipboard or just write it in the console, and you can take the output dart code by any of the three ways,

to run it, open the CMD, go to the app folder, and write j2d, you will see help text.

MacOS

For MacOS the app is available as console only, with the same options available for windows console

to run it, install dotnet 5, open the Terminal app, go to the app folder, write dotnet j2d.dll, you will see the help text

Linux

For the clipboard to work in Linux, it requires xsel, to install in Ubuntu, use the following command

apt-get install xsel

then install dotnet 5, open the Terminal app, go to the app folder, write dotnet J2d.dll, you will see the help text

You might also like...

This project base on stacked state management.

stacked_state_mamagement The new code base. Getting Started This project is a starting point for a Flutter application. A few resources to get you sta

Jan 7, 2022

PalestineDevelopers is an open-source tools code-base

PalestineDevelopers مبادرة لإحياء إسم فلسطين بتقديم أدوات برمجية تحمل إسم أرض الميعاد Flutter Packages .. will be replaced .. will be replaced .. will

Jan 4, 2022

Flutter Getx Estrutura Completa De Base Para Projetos Médios/Grandes

 Flutter Getx Estrutura Completa De Base Para Projetos Médios/Grandes

Flutter Getx Estrutura Completa De Base Para Projetos Médios/Grandes Este é um exemplo de estrutura para um projeto em flutter Getx com: Alta coesão b

Mar 13, 2022

Projeto utilizado para estudo do Slidy, Flutter Modular, Mobx e novos conceitos de UI, desenvolvido com base em curso online.

my_workout A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if th

Sep 9, 2022

Flutter Novel Webtoon create flutter beginner class from Dicoding

Flutter Novel Webtoon create flutter beginner class from Dicoding

novel_app This is my final project from create flutter beginner class from Dicoding. Screenshot Getting Started This project is a starting point for a

Mar 15, 2022

Tool made in Dart that allows you to dynamically generate JSON files from data models written in Dart.

Dart JSON Generator Versión v1.1.1 Dart JSON Generator es una herramienta que permite generar archivos JSON a partir de mapas como modelos de datos en

Nov 23, 2022

A most easily usable JSON wrapper library in Dart

A most easily usable JSON response wrapper library in Dart! 1. About 1.1. Introd

Jan 4, 2022

A generator for fhir dart classes with json artifacts.

A generator for fhir dart classes with json artifacts. Thie generator uses the freezed package to generate the data classes. It also uses all the primitive_types from the fhir package.

Jun 14, 2022

The Mashmart mobile app is designed as an example of how to retrieve data from the JSON API

The Mashmart mobile app is designed as an example of how to retrieve data from the JSON API

Mashmart Mobile App (Demo Version) ✨ About The Mashmart mobile app is designed a

Nov 17, 2022
Owner
Mohamed
Mohamed
Flutter package: Json Table Widget to create table from json array

Json Table Widget ?? Proudly Sponsored by FieldAssist Request a Demo This Flutter package provides a Json Table Widget for directly showing table from

Ayush P Gupta 193 Jan 7, 2023
package library for extended_image, extended_text and extended_text_field,provide common base class.

extended_image_library package library for extended_image extended_image A powerful official extension library of image, which support placeholder(loa

FlutterCandies 124 Dec 31, 2022
Given a JSON string, this library will generate all the necessary Dart classes to parse and generate JSON.

JSON to Dart Given a JSON string, this library will generate all the necessary Dart classes to parse and generate JSON. This library is designed to ge

Javier Lecuona 1.2k Dec 25, 2022
State Persistence - Persist state across app launches. By default this library store state as a local JSON file called `data.json` in the applications data directory. Maintainer: @slightfoot

State Persistence Persist state across app launches. By default this library store state as a local JSON file called data.json in the applications dat

Flutter Community 70 Sep 28, 2022
Fluter-json - App Demonstrating JSON Data Parsing with various flutter widgets

users_list Flutter App to Demonstrate JSON Parsing Getting Started This project is a starting point for a Flutter application. A few resources to get

Khurram Rizvi 5 Jul 10, 2021
Json editor - A json editor on flutter

Features Support add comment; Support show errors for invalid json text; Pretty

Chan Young 12 Nov 18, 2022
A new Flutter project. Use of Padding Class(Widget) and Card Class (Widget)

Use_Of_Card_And_Padding_Class A new Flutter project. Use of Padding Class(Widget) and Card Class (Widget) Getting Started This project is a starting p

Avinandan Bose 1 Mar 18, 2022
Flutter base code for app with slivers for affect on app bar and scrolling of cards.

scroll_with_flexi_title A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you

null 0 Dec 28, 2021
This is the base project for flutter programers.

flutter_code_base A Base code for new flutter project. Use many modern codes and packages that can help you build your own project really fast and eff

null 72 Oct 10, 2021
Projeto desenvolvido com base no curso de flutter da alura

bytebank A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if this

Edmundo Faria de Oliveira Neto 0 Nov 5, 2021