fromMap static method
Implementation
static AjaxRequest? fromMap(Map<String, dynamic>? map) {
if (map == null) {
return null;
}
return AjaxRequest(
data: map["data"],
method: map["method"],
url: map["url"] != null ? Uri.tryParse(map["url"]) : null,
isAsync: map["isAsync"],
user: map["user"],
password: map["password"],
withCredentials: map["withCredentials"],
headers:
AjaxRequestHeaders.fromMap(map["headers"]?.cast<String, dynamic>()),
readyState: AjaxRequestReadyState.fromValue(map["readyState"]),
status: map["status"],
responseURL: map["responseURL"] != null
? Uri.tryParse(map["responseURL"])
: null,
responseType: map["responseType"],
response: map["response"],
responseText: map["responseText"],
responseXML: map["responseXML"],
statusText: map["statusText"],
responseHeaders: map["responseHeaders"]?.cast<String, dynamic>(),
event: AjaxRequestEvent.fromMap(map["event"]?.cast<String, dynamic>()));
}