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