toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'cookie': cookie.toJson(),
'blockedReasons': blockedReasons.map((e) => e.toJson()).toList(),
if (exemptionReason != null) 'exemptionReason': exemptionReason!.toJson(),
};
}