APIResponse class

API Response

Constructors

APIResponse({int? statusCode, required Map<String, dynamic> headers, required Map<String, dynamic> body})
Constructor

Properties

body Map<String, dynamic>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, dynamic>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int?
getter/setter pair

Methods

getBody() Map<String, dynamic>
Get response body
getHeaders() Map<String, dynamic>
Get herders
getStatusCode() int?
Get header status code
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setBody(Map<String, dynamic> body) → void
Set response body
setHeaders(Map<String, dynamic> headers) → void
Add headers
setStatusCode(int statusCode) → void
set status code
toString() String
A string representation of this object.
inherited

Operators

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