core.Map<core.String, core.dynamic> toJson() => { if (consentStatus != null) 'consentStatus': consentStatus!, if (consentType != null) 'consentType': consentType!, };