AssociatedCookie.fromJson constructor
AssociatedCookie.fromJson(
- Map<String, dynamic> json
)
Implementation
factory AssociatedCookie.fromJson(Map<String, dynamic> json) {
return AssociatedCookie(
cookie: Cookie.fromJson(json['cookie'] as Map<String, dynamic>),
blockedReasons: (json['blockedReasons'] as List)
.map((e) => CookieBlockedReason.fromJson(e as String))
.toList(),
exemptionReason: json.containsKey('exemptionReason')
? CookieExemptionReason.fromJson(json['exemptionReason'] as String)
: null,
);
}