JsonList class

The class JsonList is used to create a json list body for the request.

The JsonList class is used to express a list of json objects. Examples:

final body = JsonList([
 {'name': 'John Doe', 'age': 30},
{'name': 'Jane Doe', 'age': 25},
]);

final body = JsonList(['1', '2', '3']);

final body = JsonList([1, 2, 3]);

final body = JsonList([true, false, true]);
Inheritance

Constructors

JsonList(List value)
The JsonList constructor is used to create a new instance of the JsonList class.

Properties

hashCode int
The hash code for this object.
no setterinherited
multiple bool
true if the body is a list of json objects.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value List
The value of the body.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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