toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'cookieWarningReasons':
cookieWarningReasons.map((e) => e.toJson()).toList(),
'cookieExclusionReasons':
cookieExclusionReasons.map((e) => e.toJson()).toList(),
'operation': operation.toJson(),
if (cookie != null) 'cookie': cookie!.toJson(),
if (rawCookieLine != null) 'rawCookieLine': rawCookieLine,
if (siteForCookies != null) 'siteForCookies': siteForCookies,
if (cookieUrl != null) 'cookieUrl': cookieUrl,
if (request != null) 'request': request!.toJson(),
};
}