BrowserServerOptions.fromJson constructor

BrowserServerOptions.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory BrowserServerOptions.fromJson(Map<String, dynamic> json) {
  return BrowserServerOptions(
    args: json['args'] != null ? List<String>.from(json['args']) : null,
    chromiumSandbox: json['chromiumSandbox'],
    devtools: json['devtools'],
    downloadsPath: json['downloadsPath'],
    headless: json['headless'],
    ignoreDefaultArgs: json['ignoreDefaultArgs'] != null
        ? ListStringOrBool.fromJson(json['ignoreDefaultArgs'])
        : null,
    proxy: json['proxy'],
    timeout: json['timeout'],
    tracesDir: json['tracesDir'],
  );
}