toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final map = <String, dynamic>{};
  if (args != null) {
    map['args'] = args;
  }
  if (defaultViewport != null) {
    map['defaultViewport'] = defaultViewport;
  }
  if (devtools != null) {
    map['devtools'] = devtools;
  }
  if (dumpio != null) {
    map['dumpio'] = dumpio;
  }
  if (headless != null) {
    map['headless'] = headless;
  }
  if (ignoreDefaultArgs != null) {
    map['ignoreDefaultArgs'] = ignoreDefaultArgs?.toJson();
  }
  if (ignoreHTTPSErrors != null) {
    map['ignoreHTTPSErrors'] = ignoreHTTPSErrors;
  }
  if (acceptInsecureCerts != null) {
    map['acceptInsecureCerts'] = acceptInsecureCerts;
  }
  if (slowMo != null) {
    map['slowMo'] = slowMo;
  }
  if (stealth != null) {
    map['stealth'] = stealth;
  }
  if (timeout != null) {
    map['timeout'] = timeout;
  }
  if (userDataDir != null) {
    map['userDataDir'] = userDataDir;
  }
  if (waitForInitialPage != null) {
    map['waitForInitialPage'] = waitForInitialPage;
  }
  return map;
}