toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final map = <String, dynamic>{};
  if (args != null) {
    map['args'] = args;
  }
  if (chromiumSandbox != null) {
    map['chromiumSandbox'] = chromiumSandbox;
  }
  if (devtools != null) {
    map['devtools'] = devtools;
  }
  if (downloadsPath != null) {
    map['downloadsPath'] = downloadsPath;
  }
  if (headless != null) {
    map['headless'] = headless;
  }
  if (ignoreDefaultArgs != null) {
    map['ignoreDefaultArgs'] = ignoreDefaultArgs?.toJson();
  }
  if (proxy != null) {
    map['proxy'] = proxy;
  }
  if (timeout != null) {
    map['timeout'] = timeout;
  }
  if (tracesDir != null) {
    map['tracesDir'] = tracesDir;
  }
  return map;
}