BrowserlessSessionJSON.fromJson constructor
BrowserlessSessionJSON.fromJson(
- Map<String, dynamic> json
)
Implementation
factory BrowserlessSessionJSON.fromJson(Map<String, dynamic> json) {
return BrowserlessSessionJSON(
browser: json['browser'],
browserId: json['browserId'],
id: json['id'],
initialConnectURL: json['initialConnectURL'],
killURL: json['killURL'],
launchOptions: BrowserServerOptionsOrCDPLaunchOptions.fromJson(
json['launchOptions'],
),
numbConnected: json['numbConnected'],
routePath: ListStringOrString.fromJson(json['routePath']),
startedOn: json['startedOn'],
timeAliveMs: json['timeAliveMs'],
trackingId: json['trackingId'],
userDataDir: json['userDataDir'],
);
}