Body class

Models a request/response body.

Constructors

Body.empty()
Body must be empty
Body.isNullOrAbsent()
Body is explicitly null or is absent.
Body.json(Json json)
Body must be a Json object
Body.string(String str)
Body must be a string

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<Json, R> t1Mapper, Mapper<String, R> t2Mapper, Mapper<Unit, R> t3Mapper) → 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

Static Methods

fromJsonToBody(dynamic body) Body