Json class
Models a Json object.
The definition is relaxed to dynamic to allow more flexibility. No need to create unions for every valid Json type.
Designed to work with custom Json objects or to interoperate with classes that comply with the Json serialization conventions.
Constructors
- Json.array(Iterable json)
-
Json.object(Map<
String, dynamic> json)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
fold<
R extends Object> (Mapper< Iterable, R> t1Mapper, Mapper<Map< t2Mapper) → RString, dynamic> , R> -
Folds all values into a non nullable one
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → dynamic - To be called for a custom json serialization. This is not a chainable call. If the result is writeable by the stringifier, it will result in an exception.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited