Request class

Constructors

Request()

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

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

Static Properties

clientId String?
getter/setter pair

Static Methods

convertToMap(Response response) Map<String, dynamic>?
Returns the JSON as a Map from the response, if any.
getClientId() String?
initiateRequest({required String url, required HttpMethod method, String? contentType, Map<String, dynamic>? headers, Map<String, dynamic>? data, Map<String, dynamic>? queryParams, bool isFrappeResponse = true}) Future<RequestResponse<FrappeResponse?>>
isJsonResponse(Response response) bool
Returns true if the Response or DioError contains a JSON response.
setClientId(String? id) → void
setupPersistentCookie(PersistCookieJar cookieJar) → void
Set PersistCookieJar with the directory path.