Map<String, Object?> toJson() => { if (exceptionOptions != null) 'exceptionOptions': exceptionOptions, if (filterOptions != null) 'filterOptions': filterOptions, 'filters': filters, };