toMap method

Map<String, dynamic> toMap()

Converts instance to a map.

Implementation

Map<String, dynamic> toMap() {
  return {
    "action": action?.toNativeValue(),
    "data": data,
    "event": event?.toMap(),
    "headers": headers?.toMap(),
    "isAsync": isAsync,
    "method": method,
    "password": password,
    "readyState": readyState?.toNativeValue(),
    "response": response,
    "responseHeaders": responseHeaders,
    "responseText": responseText,
    "responseType": responseType,
    "responseURL": responseURL?.toString(),
    "responseXML": responseXML,
    "status": status,
    "statusText": statusText,
    "url": url?.toString(),
    "user": user,
    "withCredentials": withCredentials,
  };
}