jsonable 0.1.2
jsonable: ^0.1.2 copied to clipboard
Management and validator of JSON with dart classes, without generated code and without reflection.
0.1.2 - 2020-02-26 #
- updating the Jlist
0.1.1+3 - 2020-01-02 #
- fix hints indicate of pub.dev
0.1.1+2 - 2020-01-02 #
- fix hints indicate of pub.dev
0.1.1 #
JNumadd support to logic operator and arithmetic operatorJStringadd support to logic operator and arithmetic operatorJListadd support to logic operator and arithmetic operatorupdate(Map)new method (call always pre-existentfromMapmethod)
0.1.0 #
-
addadd support forJMapforMap\<dynamic, dyanmic\>and Map of Jsonable:Map<String, Jsoanble>class Person with Jsonable { JMap tags; JMap<String, Contact> contacts; Person() { this.tags = jMap("tags"); this.contacts = jMap<String, Contact>("contacts", builder: () => Contact()); } } class Contact with Jsonable { JString name; JString number; Contact() { name = jString("name"); number = jString("number"); } } -
addjDynamic new JType for dynamic -
New add support for validation field of Jsonable object (see readme)
-
Breaking change delete support Jsonable with reflection use dson
-
addsetter and getter value- void setValue(E value) - set value within JType
-
E getValue; - get value in JType
-
addevery JType has access to "value" even in a more specific way- setString(String value) / String getString()
- setNum(num value) / num getNum()
- setBool(bool value) / bool getBool()
-
Breaking Change removed (experimental) operator "<<" and operator ">>"
0.0.2+2 #
- (experimental) add JType operator "<<" for set value internal Jtype and operator ">>" for get value internal Jtype
- add Jsonable operator "[]"
- performance improvement
- deprecation old Jsonable reflect if you use reflection use this pack: dson
- start of experiments with flutter and auto-form (soon with a new flutter package)
- add example for benchmark
0.0.2 #
Breaking change.
With the 0.0.1 management I started development with the reflection of Dart. This resulted in problems with AOT and consequently also with flutter. In version 0.0.2 all the APIs based on reflection in jsonable / withReflect have been moved
Announcements: 0.0.2 I set out to remove the generation of dart code from my projects, it's a practice I don't like. So in version 0.0.2 I start the creation of a module that is without generation and without reflection.
For more information read here.
0.0.1 #
- frist publication. read: Readme.md