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