ResponseReceivedExtraInfoEvent.fromJson constructor
ResponseReceivedExtraInfoEvent.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ResponseReceivedExtraInfoEvent.fromJson(Map<String, dynamic> json) {
return ResponseReceivedExtraInfoEvent(
requestId: RequestId.fromJson(json['requestId'] as String),
blockedCookies: (json['blockedCookies'] as List)
.map((e) =>
BlockedSetCookieWithReason.fromJson(e as Map<String, dynamic>))
.toList(),
headers: Headers.fromJson(json['headers'] as Map<String, dynamic>),
resourceIPAddressSpace:
IPAddressSpace.fromJson(json['resourceIPAddressSpace'] as String),
statusCode: json['statusCode'] as int,
headersText: json.containsKey('headersText')
? json['headersText'] as String
: null,
cookiePartitionKey: json.containsKey('cookiePartitionKey')
? json['cookiePartitionKey'] as String
: null,
cookiePartitionKeyOpaque: json.containsKey('cookiePartitionKeyOpaque')
? json['cookiePartitionKeyOpaque'] as bool
: null,
);
}