Gson class

Constructors

Gson()
The adapter to decode and encode gson

Properties

decoder GsonDecoder
The decoder
getter/setter pair
encoder GsonEncoder
The encoder
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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 nonexistent 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

Operators

operator ==(Object other) bool
The equality operator.
inherited