NetworkResponse class

Canonical HTTP response representation for Digia Engage.

Constructors

NetworkResponse({required int statusCode, Map<String, String> headers = const {}, String? body})
const

Properties

body → String?
final
data → dynamic
The body parsed as JSON, or the raw body if it is not JSON. Parses on every access: read it once per response.
no setter
hashCode → int
The hash code for this object.
no setterinherited
headers → Map<String, String>
final
isSuccessful → bool
true if statusCode is in the range [200, 299].
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
statusCode → int
final

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