Map<String, dynamic> toJson() { final sqlQuery = this.sqlQuery; final filters = this.filters; return { 'sqlQuery': sqlQuery, if (filters != null) 'filters': filters, }; }