Constructors
-
Gson()
-
The adapter to decode and encode gson
Methods
-
decode(String gson, {dynamic simplify = false})
→ dynamic
-
Decode gson [...]
-
encode(dynamic obj, {bool beautify = false, int indent = 2, dynamic jsonBooleans = false, dynamic quoteMapKeys = false})
→ String
-
Encode gson [...]
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a non-existent method or property is accessed. [...]
inherited
-
simplify(dynamic value)
→ dynamic
-
Simplify converts gson results to something you can easily deal with. some of these changes can't be recreated from the results.
Also in gson booleans are encoded as bytes and bytes are converted to integers in here, so instead of a true you will probably get 1 and instead of false 0
The results of this method are compatible with the json library, you can encode them as json
-
toString()
→ String
-
A string representation of this object. [...]
inherited