toJson method

Map<String, dynamic> toJson()

Allows you to serialize object.

Implementation

Map<String, dynamic> toJson() => {
      "url": url,
      "mode": mode,
      "threshold": threshold,
      "serviceTimeout": serviceTimeout,
      "proxy": proxy,
      "proxyPassword": proxyPassword,
      "proxyType": proxyType,
      "searchParams": searchParams?.toJson(),
    }.clearNulls();