Gson class Null safety

Constructors

Gson()
The adapter to decode and encode gson

Properties

decoder GsonDecoder
The decoder
read / write
encoder GsonEncoder
The encoder
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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

Operators

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