RequestWillBeSentExtraInfoEvent.fromJson constructor

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

Implementation

factory RequestWillBeSentExtraInfoEvent.fromJson(Map<String, dynamic> json) {
  return RequestWillBeSentExtraInfoEvent(
    requestId: RequestId.fromJson(json['requestId'] as String),
    associatedCookies: (json['associatedCookies'] as List)
        .map((e) => AssociatedCookie.fromJson(e as Map<String, dynamic>))
        .toList(),
    headers: Headers.fromJson(json['headers'] as Map<String, dynamic>),
    connectTiming:
        ConnectTiming.fromJson(json['connectTiming'] as Map<String, dynamic>),
    clientSecurityState: json.containsKey('clientSecurityState')
        ? ClientSecurityState.fromJson(
            json['clientSecurityState'] as Map<String, dynamic>)
        : null,
    siteHasCookieInOtherPartition:
        json.containsKey('siteHasCookieInOtherPartition')
            ? json['siteHasCookieInOtherPartition'] as bool
            : null,
  );
}