CDPLaunchOptions.fromJson constructor
CDPLaunchOptions.fromJson(
- Map<String, dynamic> json
)
Implementation
factory CDPLaunchOptions.fromJson(Map<String, dynamic> json) {
return CDPLaunchOptions(
args: json['args'] != null ? List<String>.from(json['args']) : null,
defaultViewport: json['defaultViewport'],
devtools: json['devtools'],
dumpio: json['dumpio'],
headless: json['headless'],
ignoreDefaultArgs: json['ignoreDefaultArgs'] != null
? ListStringOrBool.fromJson(json['ignoreDefaultArgs'])
: null,
ignoreHTTPSErrors: json['ignoreHTTPSErrors'],
acceptInsecureCerts: json['acceptInsecureCerts'],
slowMo: json['slowMo'],
stealth: json['stealth'],
timeout: json['timeout'],
userDataDir: json['userDataDir'],
waitForInitialPage: json['waitForInitialPage'],
);
}