BlockedSetCookieWithReason.fromJson constructor

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

Implementation

factory BlockedSetCookieWithReason.fromJson(Map<String, dynamic> json) {
  return BlockedSetCookieWithReason(
    blockedReasons:
        (json['blockedReasons'] as List)
            .map((e) => SetCookieBlockedReason.fromJson(e as String))
            .toList(),
    cookieLine: json['cookieLine'] as String,
    cookie:
        json.containsKey('cookie')
            ? Cookie.fromJson(json['cookie'] as Map<String, dynamic>)
            : null,
  );
}