toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    "url": url?.toString(),
    "method": method,
    "headers": headers,
    "body": body,
    "mode": mode,
    "credentials": credentials?.toMap(),
    "cache": cache,
    "redirect": redirect,
    "referrer": referrer,
    "referrerPolicy": referrerPolicy?.toValue(),
    "integrity": integrity,
    "keepalive": keepalive,
    "action": action?.toValue()
  };
}