toJson method

Map<String, dynamic> toJson()

Implementation

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