toMap method
Converts instance to a map.
Implementation
Map<String, dynamic> toMap() {
return {
"action": action?.toNativeValue(),
"body": body,
"cache": cache,
"credentials": credentials?.toMap(),
"headers": headers,
"integrity": integrity,
"keepalive": keepalive,
"method": method,
"mode": mode,
"redirect": redirect,
"referrer": referrer,
"referrerPolicy": referrerPolicy?.toNativeValue(),
"url": url?.toString(),
};
}