toJson method

Map toJson()

Implementation

Map toJson(){
  Map _result = {};

  if (url != null) _result.addAll({"url": url});
  if (mode != null) _result.addAll({"mode": mode});
  if (searchParams != null) _result.addAll({"searchParams": searchParams});
  if (threshold != null) _result.addAll({"threshold": threshold});
  if (serviceTimeout != null) _result.addAll({"serviceTimeout": serviceTimeout});
  if (proxy != null) _result.addAll({"proxy": proxy});
  if (proxyPassword != null) _result.addAll({"proxyPassword": proxyPassword});
  if (proxyType != null) _result.addAll({"proxyType": proxyType});

  return _result;
}