TrayRequestBody class
The base type for request bodies in post/put/delete requests
It provides a getMap()
or a getList()
method to make sure the class is converted to a string only map.
This getMap or getList should be implemented individually for every request body, to make sure we don't
have to use dart:mirror, which introduces a few problems.
Constructors
Properties
- bodyType → TrayRequestBodyType
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getList(
) → Future< List> - convert the object to a list of contents
-
getMap(
) → Future< Map< String, dynamic> > - convert the object to a string only map
-
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