@override Object toJson() { return { 'savedQuery': savedQuery, if (orderBy.isNotDefault) 'orderBy': orderBy, }; }