CookieDeprecationMetadataIssueDetails.fromJson constructor
CookieDeprecationMetadataIssueDetails.fromJson(
- Map<String, dynamic> json
)
Implementation
factory CookieDeprecationMetadataIssueDetails.fromJson(
Map<String, dynamic> json) {
return CookieDeprecationMetadataIssueDetails(
allowedSites:
(json['allowedSites'] as List).map((e) => e as String).toList(),
optOutPercentage: json['optOutPercentage'] as num,
isOptOutTopLevel: json['isOptOutTopLevel'] as bool? ?? false,
operation: CookieOperation.fromJson(json['operation'] as String),
);
}