BlockedCookieWithReason.fromJson constructor

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

Implementation

factory BlockedCookieWithReason.fromJson(Map<String, dynamic> json) {
  return BlockedCookieWithReason(
    blockedReasons: (json['blockedReasons'] as List)
        .map((e) => CookieBlockedReason.fromJson(e as String))
        .toList(),
    cookie: Cookie.fromJson(json['cookie'] as Map<String, dynamic>),
  );
}