Skip to content

2lineofcode/json_to_dart2023

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsonToDartModel

online tool for convert json to dart code

Foo

Feature

  • online use, without plugin
  • support null safe
  • support multidimensional list
  • support complex json
  • support convert all props to String type
  • support Fault tolerance for JSON with mismatched data types
  • support default value when json == null
  • empty props warning
  • prefix class name
  • single file
  • replace all dart keyword protected
  • instant convert

FYI

  • when select Force String Type , the bool type will not convert

Explore Complex Json Sample

click here for more case: sample

{
    "string_field":"json complex case",
    "double_field":1e0,
    "int_field":123,
    "bool_field": false,
    "nul_field": null,
    "@symbol_field":"hi there",
    "void": "im support for DART protectedKey",
    "object_field":{"depth1":{"depth2":{"msg": "hi"}}},
    "array_field":[{"name":"abdul", "is_recomnd": null}],
    "dimensional_array": { "coordinates": [ [2.33849, 48.8896, 0], [2.33847, 48.88955, -0.33], [2.33846, 48.88951, 10] ] }
    
}

...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published