toMap method

Map<String, dynamic> toMap()

Converts instance to a map.

Implementation

Map<String, dynamic> toMap() {
  return {
    "allowsCellularAccess": allowsCellularAccess,
    "allowsConstrainedNetworkAccess": allowsConstrainedNetworkAccess,
    "allowsExpensiveNetworkAccess": allowsExpensiveNetworkAccess,
    "assumesHTTP3Capable": assumesHTTP3Capable,
    "attribution": attribution?.toNativeValue(),
    "body": body,
    "cachePolicy": cachePolicy?.toNativeValue(),
    "headers": headers,
    "httpShouldHandleCookies": httpShouldHandleCookies,
    "httpShouldUsePipelining": httpShouldUsePipelining,
    "mainDocumentURL": mainDocumentURL?.toString(),
    "method": method,
    "networkServiceType": networkServiceType?.toNativeValue(),
    "timeoutInterval": timeoutInterval,
    "url": url?.toString(),
  };
}